Repository navigation
Time units error - #1760
Time units error#1760
Conversation
|
@Mergifyio rebase |
|
Command
|
f8b9469 to
c47e099
Compare
Codecov Report
@@ Coverage Diff @@
## main #1760 +/- ##
=======================================
Coverage 93.35% 93.36%
=======================================
Files 27 27
Lines 24485 24496 +11
Branches 1096 1096
=======================================
+ Hits 22859 22870 +11
Misses 1591 1591
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Yeah, this is pretty much it @benjeffery I think. It would be good to add a private |
4c44fd4 to
e5fcc2b
Compare
e5fcc2b to
6c8c424
Compare
|
Tests sorted, should be good to go! |
|
Whoops, I've forgotten the error string and to test from python, back to draft. |
jeromekelleher
left a comment
There was a problem hiding this comment.
Looks good, just needs the same tests in the positive direction?
6c8c424 to
5d209dd
Compare
|
Should be good to go now. |
jeromekelleher
left a comment
There was a problem hiding this comment.
LGTM, just a stray arg left over from an earlier version I think
| mode="site", | ||
| span_normalise=True, | ||
| polarised=False, | ||
| allow_uncalibrated=False, |
There was a problem hiding this comment.
Is this supposed to be here? I guess we should probably add the option to the Python API, but it'll be quite tedious putting the option in all the stats so maybe we should spin off a separate issue to discuss whether we want to do it? Anyway, we're not doing anything with this arg, so probably should be dropped for now.
There was a problem hiding this comment.
I haven't followed all of this, but other options for how we'd let people compute branch stats on uncalibrated trees would be:
- provide a python way to change the time units
- raise a warning instead of an error
There was a problem hiding this comment.
Ah! Yes, I started coding this up, then thought that I don't think that we need this. It is easy to change the time_units from python via tables.time_units.
5d209dd to
55ecfaf
Compare
|
Looks like this is being hit by #1762, I'll sort it out. |
|
Hmm, looks like mergify isn't requiring tests pass on 32 bit - maybe we should update the config? |
Gah, nasty oversight. Yes it should. |
Fixes #1644
WIP for feedback.
Is this how you saw this working @jeromekelleher ?
I've added errors to
tsk_treeseq_allele_frequency_spectrumwhenTSK_STAT_BRANCHandtsk_treeseq_general_statwhenTSK_STAT_BRANCH.I have not errored on 'tsk_treeseq_kc_distance' as although it uses branch length, it seems like the dimension isn't important there unless you are comparing kc between different tree sequences and we can't detect that.