[med-svn] [Git][med-team/q2-types][master] Port to Pandas 2.0 (Thanks to s3v)

Andreas Tille (@tille) gitlab at salsa.debian.org
Sat Feb 17 08:18:46 GMT 2024



Andreas Tille pushed to branch master at Debian Med / q2-types


Commits:
c9a34140 by Andreas Tille at 2024-02-17T08:55:28+01:00
Port to Pandas 2.0 (Thanks to s3v)

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/pandas-2.0.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+q2-types (2023.9.0-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Port to Pandas 2.0 (Thanks to s3v)
+    Closes: #1053944
+
+ -- Andreas Tille <tille at debian.org>  Sun, 04 Feb 2024 18:56:10 +0100
+
 q2-types (2023.9.0-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/pandas-2.0.patch
=====================================
@@ -0,0 +1,28 @@
+Description: Port to Pandas 2.0
+Bug-Debian: https://bugs.debian.org/1053944
+Author:  s3v <c0llapsed at yahoo.it>
+Last-Update: Sat, 17 Feb 2024 06:35:41 +0100
+
+--- a/q2_types/sample_data/tests/test_transformer.py
++++ b/q2_types/sample_data/tests/test_transformer.py
+@@ -28,8 +28,7 @@
+         obs = transformer(exp)
+ 
+         # Squeeze equals true to return series instead of dataframe
+-        obs = pd.read_csv(str(obs), sep='\t', header=0, index_col=0,
+-                          squeeze=True)
++        obs = pd.read_csv(str(obs), sep='\t', header=0, index_col=0).squeeze('columns')
+ 
+         assert_series_equal(exp, obs)
+ 
+--- a/q2_types/feature_data/_transformer.py
++++ b/q2_types/feature_data/_transformer.py
+@@ -255,7 +255,7 @@
+ 
+ def _series_to_fasta_format(ff, data, sequence_type="DNA", lowercase=False):
+     with ff.open() as f:
+-        for id_, seq in data.iteritems():
++        for id_, seq in data.items():
+             if sequence_type == "protein":
+                 sequence = skbio.Protein(seq, metadata={'id': id_},
+                                          lowercase=lowercase)


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 py.test-3.patch
+pandas-2.0.patch



View it on GitLab: https://salsa.debian.org/med-team/q2-types/-/commit/c9a341402ad36d20ce0af3dc70f26a21165f0a65

-- 
View it on GitLab: https://salsa.debian.org/med-team/q2-types/-/commit/c9a341402ad36d20ce0af3dc70f26a21165f0a65
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/20240217/e0a2614f/attachment-0001.htm>


More information about the debian-med-commit mailing list