0.1.2
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 randomGraph
. 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)