From a87bec049be0a371c66c30cb371b1871212f1436 Mon Sep 17 00:00:00 2001 From: endre bakken stovner Date: Wed, 9 Jun 2021 20:01:41 +0200 Subject: [PATCH] 0.0.59 --- CHANGELOG | 2 +- ncls/__init__.py | 6 +++--- ncls/version.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c669e1b..7c1e2d2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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) diff --git a/ncls/__init__.py b/ncls/__init__.py index 0f09343..d376a66 100644 --- a/ncls/__init__.py +++ b/ncls/__init__.py @@ -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)) diff --git a/ncls/version.py b/ncls/version.py index d588f3c..40efd50 100644 --- a/ncls/version.py +++ b/ncls/version.py @@ -1 +1 @@ -__version__ = "0.0.58" +__version__ = "0.0.59"