[med-svn] [Git][med-team/python-pyani][master] 2 commits: add patch to fix dataframe sorting syntax (Closes: #1044066)

Ananthu C V (@weepingclown) gitlab at salsa.debian.org
Fri Nov 24 18:44:33 GMT 2023



Ananthu C V pushed to branch master at Debian Med / python-pyani


Commits:
15e93c8b by Ananthu C V at 2023-11-24T21:44:49+05:30
add patch to fix dataframe sorting syntax (Closes: #1044066)

- - - - -
9c6c8824 by Ananthu C V at 2023-11-25T00:13:35+05:30
update changelog

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/dataframe_sort.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-pyani (0.2.12-3) UNRELEASED; urgency=medium
+
+  * Team upload
+  * add patch to fix dataframe sorting syntax (Closes: #1044066)
+
+ -- Ananthu C V <weepingclown at disroot.org>  Fri, 24 Nov 2023 22:32:48 +0530
+
 python-pyani (0.2.12-2) unstable; urgency=medium
 
   [ Andreas Tille ]


=====================================
debian/patches/dataframe_sort.patch
=====================================
@@ -0,0 +1,39 @@
+Description: fixes dataframe sorting syntax issues
+ Upstream already has the same fix it seems, although there is no new release.
+ Forwarding, as such, is not needed.
+Author: Ananthu C V <weepingclown at disroot.org>
+Forwarded: not-needed
+Last-Update: 2023-11-24
+--- a/tests/test_anib.py
++++ b/tests/test_anib.py
+@@ -510,8 +510,8 @@
+         # ANIb
+         result = anib.process_blast(self.anibdir, orglengths, fraglengths, mode="ANIb")
+         assert_frame_equal(
+-            result.percentage_identity.sort_index(1).sort_index(),
+-            self.anibtgt.sort_index(1).sort_index(),
++            result.percentage_identity.sort_index(axis=1).sort_index(),
++            self.anibtgt.sort_index(axis=1).sort_index(),
+         )
+ 
+     @pytest.mark.skip(reason="legacy BLAST deprecated")
+@@ -524,6 +524,6 @@
+             self.aniblastalldir, orglengths, fraglengths, mode="ANIblastall"
+         )
+         assert_frame_equal(
+-            result.percentage_identity.sort_index(1).sort_index(),
+-            self.aniblastalltgt.sort_index(1).sort_index(),
++            result.percentage_identity.sort_index(axis=1).sort_index(),
++            self.aniblastalltgt.sort_index(axis=1).sort_index(),
+         )
+--- a/tests/test_anim.py
++++ b/tests/test_anim.py
+@@ -218,6 +218,6 @@
+         orglengths = pyani_files.get_sequence_lengths(seqfiles)
+         result = anim.process_deltadir(self.deltadir, orglengths)
+         assert_frame_equal(
+-            result.percentage_identity.sort_index(1).sort_index(),
+-            self.df_pid.sort_index(1).sort_index(),
++            result.percentage_identity.sort_index(axis=1).sort_index(),
++            self.df_pid.sort_index(axis=1).sort_index(),
+         )


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 pytest.patch
+dataframe_sort.patch



View it on GitLab: https://salsa.debian.org/med-team/python-pyani/-/compare/a7365b66ba91985013ca973852c0bdcd169744da...9c6c88240d29a86f19d3660f419d2ba2db3cee54

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-pyani/-/compare/a7365b66ba91985013ca973852c0bdcd169744da...9c6c88240d29a86f19d3660f419d2ba2db3cee54
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/20231124/1a11aa76/attachment-0001.htm>


More information about the debian-med-commit mailing list