Complex demographic operationsΒΆ
In addition to arbitrary changes in population size over time fwdpy supports complex demographic operations on metapopulations. These operations act on fwdpy.fwdpy.mpopvec objects and are carried out by the demography module:
>>> import fwdpy.demography as demog
The relevant functions are:
fwdpy.demography.make_mpopvec()fwdpy.demography.copy_pop()fwdpy.demography.merge_pops()fwdpy.demography.remove_pop()fwdpy.demography.split_pops()fwdpy.demography.admix_pops()fwdpy.demography.swap_pops()