[med-svn] [Git][med-team/python-ncls][upstream] New upstream version 0.0.57+ds

Nilesh Patra gitlab at salsa.debian.org
Tue Oct 20 08:09:07 BST 2020



Nilesh Patra pushed to branch upstream at Debian Med / python-ncls


Commits:
51950d20 by Nilesh Patra at 2020-10-20T12:28:55+05:30
New upstream version 0.0.57+ds
- - - - -


3 changed files:

- CHANGELOG
- ncls/__init__.py
- ncls/version.py


Changes:

=====================================
CHANGELOG
=====================================
@@ -1,3 +1,6 @@
+# 0.0.57 (14.10.20)
+- accept lists/pd.Series in constructor
+
 # 0.0.55-56 (12.10.20)
 - fix build on 32-bit architectures (thanks to nileshpatra)
 


=====================================
ncls/__init__.py
=====================================
@@ -5,6 +5,9 @@ import numpy as np
 
 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]]
+
     if starts.dtype == np.int64:
         return NCLS64(starts, ends, ids)
     elif starts.dtype == np.int32:
@@ -17,6 +20,9 @@ def FNCLS(starts, ends, ids):
 
     from ncls.src.fncls import FNCLS
 
+    if isinstance(starts, list) or "pandas" in str(type(starts)):
+        starts, ends, ids = [np.array(s) for s in [starts, ends, ids]]
+
     if starts.dtype == np.double:
         return FNCLS(starts, ends, ids)
     else:


=====================================
ncls/version.py
=====================================
@@ -1 +1 @@
-__version__ = "0.0.56"
+__version__ = "0.0.57"



View it on GitLab: https://salsa.debian.org/med-team/python-ncls/-/commit/51950d208888ffef83ec6517fdc7eaa16a978344

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-ncls/-/commit/51950d208888ffef83ec6517fdc7eaa16a978344
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20201020/37002218/attachment-0001.html>


More information about the debian-med-commit mailing list