11.1 Overview

In this chapter, an example of wil be provided of how to extend PyPedal by creating a user-defined routine. New routines may implement a new measure of genetic diversity, extend the graphics module, add a new report, or group a series of actions into a single convenient routine.

One of the appealing features of PyPedal is its easy extensibility. In this section, we will demonstrate how to add a user-written module to PyPedal. The file pyp_template.py that is distributed with PyPedal is a skeleton that can be used to help you get started writing your custom module(s). You should also look at the source code of the standard modules, particularly if there is already a routine that does something similar to what you would like to do, to see if you can jump-start your project by reusing code.



Subsections
See About this document... for information on suggesting changes.