[med-svn] [Git][med-team/pyranges][master] [skip ci] Add patch to fix tests
    Nilesh Patra (@nilesh) 
    gitlab at salsa.debian.org
       
    Wed Nov  3 07:09:07 GMT 2021
    
    
  
Nilesh Patra pushed to branch master at Debian Med / pyranges
Commits:
0a49bbc1 by Nilesh Patra at 2021-11-03T12:38:48+05:30
[skip ci] Add patch to fix tests
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/fix_dtype.patch
- + debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -6,8 +6,9 @@ pyranges (0.0.111+ds-1) UNRELEASED; urgency=medium
   [ Nilesh Patra ]
   * New upstream version 0.0.111+ds
   * Run cme
+  * Add patch to fix tests
 
- -- Nilesh Patra <nilesh at debian.org>  Tue, 02 Nov 2021 23:28:55 +0530
+ -- Nilesh Patra <nilesh at debian.org>  Wed, 03 Nov 2021 07:06:31 +0000
 
 pyranges (0.0.85+ds-1) unstable; urgency=medium
 
=====================================
debian/patches/fix_dtype.patch
=====================================
@@ -0,0 +1,15 @@
+Description: Explicitly case variable to category dtype
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2021-11-03
+--- a/pyranges/methods/concat.py
++++ b/pyranges/methods/concat.py
+@@ -43,7 +43,8 @@
+     if any(strand_info) and not all(strand_info):
+         new_res = {}
+         for k, v in res.items():
+-            v.loc[:, "Strand"] = v.Strand.cat.add_categories(["."])
++            type_v = v.Strand.astype('category')
++            v.loc[:, "Strand"] = type_v.cat.add_categories(["."])
+             new_res[k] = v.assign(Strand=v.Strand.fillna("."))
+         res = pr.PyRanges(new_res)
+         res.Strand = res.Strand
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+fix_dtype.patch
View it on GitLab: https://salsa.debian.org/med-team/pyranges/-/commit/0a49bbc1c524bd6b79a895847ad477ce9b85e6b6
-- 
View it on GitLab: https://salsa.debian.org/med-team/pyranges/-/commit/0a49bbc1c524bd6b79a895847ad477ce9b85e6b6
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/20211103/9ae87428/attachment-0001.htm>
    
    
More information about the debian-med-commit
mailing list