-
Notifications
You must be signed in to change notification settings - Fork 78
Allow is_unknown_time to work on arrays #857
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
Conversation
df920de to
2b35d47
Compare
|
LGTM! |
Codecov Report
@@ Coverage Diff @@
## master #857 +/- ##
==========================================
- Coverage 93.52% 93.52% -0.01%
==========================================
Files 24 24
Lines 19928 19927 -1
Branches 789 789
==========================================
- Hits 18637 18636 -1
Misses 1259 1259
Partials 32 32
Continue to review full report at Codecov.
|
jeromekelleher
left a comment
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.
LGTM, minor comments.
python/tskit/util.py
Outdated
| """ | ||
| return struct.pack(">d", UNKNOWN_TIME) == struct.pack(">d", time) | ||
| try: | ||
| return struct.pack(">d", UNKNOWN_TIME) == struct.pack(">d", time) |
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.
Do we need to first part now? I thought numpy would cast to a 1-element array.
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.
Seems good - I get a bool back! Nice.
2b35d47 to
629b697
Compare
|
@jeromekelleher All fixed up. |
|
Issues on Windows? |
|
Huh, weird. Looking into it. |
629b697 to
2e3c9c0
Compare
|
@jeromekelleher Fixed by forcing the dtype of the array, means that |
2e3c9c0 to
2f5238b
Compare
|
@jeromekelleher Fixed my pub-induced error. |
2f5238b to
dc51be4
Compare
Fixes #814