-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update TreeTime #1207
Update TreeTime #1207
Conversation
seeding the default `np.random`-RNG. Since 0.10.0, TreeTime uses its own instance of `np.random.default_rng` and globally setting `np.random.seed` no longer has the desired effect. By passing the `seed` to TreeTime, we now set the state of the relevant RNG.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1207 +/- ##
=======================================
Coverage 68.81% 68.81%
=======================================
Files 64 64
Lines 6936 6936
Branches 1693 1692 -1
=======================================
Hits 4773 4773
Misses 1856 1856
Partials 307 307
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good pending one suggested change, and a changelog entry along the lines of:
Updated to use TreeTime 0.10.0, which changes the random seeding method used in
augur refine --seed
.
I'll fix up the commits and merge. |
57aadaa
to
f9eec2b
Compare
This PR updates the required TreeTime version to 0.10.0 or later. This version of TT handles random number generator state differently, which requires slight changes how the
augur refine
argument--seed
is handled. Instead of setting the default numpy RNG, this argument is now passed to the TreeTime constructor.In addition, this PR adds a flag
--greedy-resolve
toaugur refine
. This is the default atm. But adding the flag will enable changing the default in the future.