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
I would like to convert that demes object to be measured in units of years, with a generation time of 25 years. I see a d.in_generations converter, but nothing to go the other way? What's the best way to do this?
The text was updated successfully, but these errors were encountered:
This seems like a strange omission, but until now no one has asked for it. Below is a function I wrote to do this for stdpopsim models. It should probably be pulled into demes-python, with appropriate tests. Does this do what you want?
I have a model from an ms command line:
d = demes.from_ms("-eN 0.01 0.1 -eN 0.06 1 -eN 0.2 0.5 -eN 1 1 -eN 2 2", N0=1e4)
I would like to convert that demes object to be measured in units of years, with a generation time of 25 years. I see a
d.in_generations
converter, but nothing to go the other way? What's the best way to do this?The text was updated successfully, but these errors were encountered: