Skip to content

Commit

Permalink
0.0.59
Browse files Browse the repository at this point in the history
  • Loading branch information
endre bakken stovner committed Jun 9, 2021
1 parent 14ee35b commit a87bec0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.0.58 (09.03.21)
# 0.0.58/59/60 (hotfixes) (09.03.21)
- try to fix type mismatches and make causes more explicit

# 0.0.57 (14.10.20)
Expand Down
6 changes: 3 additions & 3 deletions ncls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ def NCLS(starts, ends, ids):
if isinstance(starts, list) or "pandas" in str(type(starts)):
starts, ends, ids = [np.array(s) for s in [starts, ends, ids]]

ids = np.astype(np.int64)
ids = ids.astype(np.int64)
if starts.dtype == np.int64:
return NCLS64(starts, ends.astype(np.int64), ids)
return NCLS64(starts.astype(np.int64), ends.astype(np.int64), ids)
elif starts.dtype == np.int32:
return NCLS32(starts, ends.astype(np.int32), ids)
return NCLS32(starts.astype(np.int32), ends.astype(np.int32), ids)
else:
raise Exception("Starts/Ends not int64 or int32: " + str(starts.dtype))

Expand Down
2 changes: 1 addition & 1 deletion ncls/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.58"
__version__ = "0.0.59"

0 comments on commit a87bec0

Please sign in to comment.