[med-svn] [Git][med-team/python-ncls][master] 4 commits: routine-update: New upstream version

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



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


Commits:
8c433f36 by Nilesh Patra at 2020-10-20T12:28:54+05:30
routine-update: New upstream version

- - - - -
51950d20 by Nilesh Patra at 2020-10-20T12:28:55+05:30
New upstream version 0.0.57+ds
- - - - -
94791985 by Nilesh Patra at 2020-10-20T12:28:56+05:30
Update upstream source from tag 'upstream/0.0.57+ds'

Update to upstream version '0.0.57+ds'
with Debian dir d73c91f346115a3223822d49a149230509748496
- - - - -
bc9edb94 by Nilesh Patra at 2020-10-20T12:29:11+05:30
routine-update: Ready to upload to unstable

- - - - -


4 changed files:

- CHANGELOG
- debian/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)
 


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+python-ncls (0.0.57+ds-1) unstable; urgency=medium
+
+  * New upstream version
+
+ -- Nilesh Patra <npatra974 at gmail.com>  Tue, 20 Oct 2020 12:29:11 +0530
+
 python-ncls (0.0.56+ds-1) unstable; urgency=medium
 
   * New upstream version 0.0.56+ds (Closes: #966237)


=====================================
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/-/compare/cfa8dc0560f490d77e232db9776994090aca9506...bc9edb94af3f101b0b5d01b34608ac84268380ca

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-ncls/-/compare/cfa8dc0560f490d77e232db9776994090aca9506...bc9edb94af3f101b0b5d01b34608ac84268380ca
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/fb895668/attachment-0001.html>


More information about the debian-med-commit mailing list