You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If two demes have the same start time, they will be sorted lexically by name.
This is not correct -- we wish to respect the order in which the demes appear in the file. This order should be the "natural" order of the file -- for the same start time, we use the order given by the iterator in Python.
A minimal example is:
importfwdpy11importdemesyaml="""description: single deme modeltime_units: generationsdemes: - name: B epochs: - start_size: 100 - name: A epochs: - start_size: 100"""demes_model=demes.loads(yaml)
forgindemes_model.demes:
print(g.name)
# No burn-infp11_model=fwdpy11.discrete_demography.from_demes(demes_model, 0)
print(fp11_model.metadata)
The output is:
python model.py
B
A
{'deme_labels': {0: 'A', 1: 'B'}, 'initial_sizes': {1: 100, 0: 100}, 'burnin_time': 0, 'total_simulation_length': 0}
The text was updated successfully, but these errors were encountered:
There is a problem with importing demes models:
A minimal example is:
The output is:
The text was updated successfully, but these errors were encountered: