Repository navigation
Add Demography.from_tree_sequence. - #1539
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1539 +/- ##
==========================================
- Coverage 91.36% 91.34% -0.03%
==========================================
Files 23 23
Lines 10103 10148 +45
Branches 2119 2134 +15
==========================================
+ Hits 9231 9270 +39
- Misses 438 441 +3
- Partials 434 437 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
In some cases, I think the user will have the demography that was used to simulate |
Yep, that should work fine. Definitely will be tests for that. |
|
Just added a couple of tests @grahamgower, works as you would expect when you don't provide a demography as a parameter. |
|
Looks good! Taking parameters (initial_size, growth_rate) from metadata seems like a big can of worms - e.g., that's the "initial size" at what time ago? |
8b90892 to
44df8da
Compare
|
@petrelharp, any chance you could take a look at this and comment on how it's going? I didn't get a chance to finish it, but you'll see how it's going. I've decided against allowing |
|
Looks good! Only minor comments. |
fed6949 to
3d8c0f8
Compare
|
I think this is ready to go - @grahamgower it would be great to get your eyes on this, if you can. I'm mainly trying to make it less easy to make mistakes. There's a follow-up in #1546, but I'll let that go until this is merged as it'll be noisy. |
4bad2b2 to
91ae2c3
Compare
Closes #1528
WIP, but the basic stuff is there. Will need to figure out how to deal with metadata when appending to the population table.
@petrelharp, what do you think?