Skip to content

Conversation

@benjeffery
Copy link
Member

Fixes #814

@hyanwong
Copy link
Member

LGTM!

@codecov
Copy link

codecov bot commented Sep 22, 2020

Codecov Report

Merging #857 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
python/tskit/util.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2b6730...dc51be4. Read the comment docs.

Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor comments.

"""
return struct.pack(">d", UNKNOWN_TIME) == struct.pack(">d", time)
try:
return struct.pack(">d", UNKNOWN_TIME) == struct.pack(">d", time)
Copy link
Member

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.

Copy link
Member Author

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.

@benjeffery
Copy link
Member Author

@jeromekelleher All fixed up.

@jeromekelleher
Copy link
Member

Issues on Windows?

@benjeffery
Copy link
Member Author

Huh, weird. Looking into it.

@benjeffery
Copy link
Member Author

@jeromekelleher Fixed by forcing the dtype of the array, means that None now gives false instead of an error, but it feels more correct to do that anyway.

@benjeffery
Copy link
Member Author

@jeromekelleher Fixed my pub-induced error.

@mergify mergify bot merged commit 3a16d24 into tskit-dev:master Sep 23, 2020
@benjeffery benjeffery deleted the is-unknown-array branch September 24, 2020 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is_unknown_time for numpy arrays

3 participants