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 <[email protected]> Tue, 02 Nov 2021 23:28:55 +0530 + -- Nilesh Patra <[email protected]> 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 <[email protected]> +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.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
