Changelog

0.2.1 - 2021-12-07

New features:

  • Support for the metadata field at the toplevel of a YAML file. The is a dictionary that may contain arbitrary nested data. (@grahamgower, #275, #392).

Bug fixes:

  • The string “Infinity” is now accepted when using load_all(), just like for load() and loads(). This fixes loading fully-resolved models with the CLI. (@grahamgower, #394, #395).

Breaking changes:

  • The demes.hypothesis_strategies.graphs() function for generating a random Graph has been removed. This was buggy and not usable as originally intended. (@grahamgower, #360, #397).

0.2.0 - 2021-12-01

New features:

Breaking changes:

  • A pulse event now allows for simultaneous sources and takes arguments sources and proportions instead of source and proportion. The sources and proportions must be provided as a list, even when there is only a single source deme. (@apragsdale, #353)

  • Disallow null values and blank entries in input YAML models. (@apragsdale, #340, #387)

Bug fixes:

0.1.2 - 2021-06-08

New features:

  • Add Graph.migration_matrices() to get the migration matrices for a graph. (@grahamgower, #309, #320)

  • Add Deme.size_at() to get the size of a deme at a given time. (@grahamgower, #312, #314)

  • Support “linear” as an Epoch.size_function. (@noscode, #296, #310)

  • Downstream test code can now use the demes.hypothesis_strategies.graphs() hypothesis strategy to generate a random Graph. This is preliminary, and as such is not yet documented, but is used for testing internally with some success. The API may change in the future in response to requests from downstream application authors. (@grahamgower, #217, #294)

  • The string representation for a graph, Graph.__str__(), is now the simplified YAML output. (@grahamgower, #235, #293)

Breaking changes:

  • The undocumented msprime and stdpopsim converters have been removed. (@grahamgower, #313, #316)

  • The JSON spec doesn’t allow serialising infinite float values (although the Python json library does support this by default). So for JSON output we instead use the string “Infinity”. (@grahamgower, demes-spec#70, #311)

0.1.1 - 2021-04-21

Remove the “demes” console_scripts entry point. This isn’t documented/supported and was left in accidentally.

0.1.0 - 2021-04-19

Breaking changes:

  • The interpretation has been changed for symmetric migrations when the start_time (and/or end_time) is not specified. Symmetric migrations are now resolved separately for each pair in the list of participating demes. To accommodate this semantic change, the SymmetricMigration class has been removed, and symmetric migrations are always resolved into pairs of AsymmetricMigration objects. (@grahamgower, #263, #268)

  • The size_function field can no longer be an arbitrary string. Only the “constant” and “exponential” strings are recognised. (#262, #278)

New features:

Bug fixes:

  • Graph.in_generations() no longer changes time values for a graph when time_units == "generations" and generation_time is not None. (@grahamgower, #273, #274)

0.1.0a4 - 2021-03-22

Breaking changes:

Bug fixes:

0.1.0a3 - 2021-02-25

Bug fixes:

  • Fix Graph.in_generations() to also convert the Deme.start_time field. Thanks to @apragsdale for reporting the problem. (@grahamgower, #224, #225).

  • Fix assert_close() and is_close() equality checks to compare the deme start_time. (@grahamgower, #224, #225).

0.1.0a2 - 2021-02-24

Alpha release for testing. The API and the schema for YAML files have been largely agreed upon. Backwards-incompatible changes before the first stable release are still possible, but are considered unlikely.

0.1.0a1 - 2020-11-12

Initial alpha release to reserve the name ‘demes’ on pypi.