[med-svn] [Git][med-team/python-skbio][master] Fix some more numpy issues
Andreas Tille (@tille)
gitlab at salsa.debian.org
Sun Jan 29 11:02:14 GMT 2023
Andreas Tille pushed to branch master at Debian Med / python-skbio
Commits:
25c2f7dc by Andreas Tille at 2023-01-29T11:45:30+01:00
Fix some more numpy issues
- - - - -
1 changed file:
- debian/patches/numpy-1.24.patch
Changes:
=====================================
debian/patches/numpy-1.24.patch
=====================================
@@ -29,6 +29,15 @@ Forwarded: https://github.com/biocore/scikit-bio/issues/1839
# invalid input type (non-numpy.ndarray input)
with self.assertRaisesRegex(TypeError, r'tuple'):
+@@ -885,7 +885,7 @@ class TestSequence(TestSequenceBase, Rea
+ metadata={'id': 'id9', 'description': 'dsc9'},
+ positional_metadata={'quality': [0, 1, 2, 3, 15, 14,
+ 13, 9]})
+- self.assertEqual(seq[np.array([0, 1, 2, 3, 15, 14, 13, 9])], eseq)
++ self.assertEqual(seq[np.array([0, 1, 2, 3, 15, 14, 13, 9], dtype=np.int32)], eseq)
+
+ def test_getitem_with_numpy_index_no_positional_metadata(self):
+ s = "0123456789abcdef"
@@ -2212,7 +2212,7 @@ class TestSequence(TestSequenceBase, Rea
yield i
else:
@@ -45,7 +54,7 @@ Forwarded: https://github.com/biocore/scikit-bio/issues/1839
qual_str = ' '.join(chunks)
try:
- quality = np.asarray(qual_str.split(), dtype=int)
-+ quality = np.asarray(qual_str.split(), dtype=int64)
++ quality = np.asarray(qual_str.split(), dtype=np.int64)
except ValueError:
raise QUALFormatError(
"Could not convert quality scores to integers:\n%s"
View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/25c2f7dc92b4a683f456bceeb43f8c517a59595c
--
View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/25c2f7dc92b4a683f456bceeb43f8c517a59595c
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/20230129/a726afe9/attachment-0001.htm>
More information about the debian-med-commit
mailing list