Path: csiph.com!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.maint.python Subject: Remaining numpy 1.24 issues on 32bit architectures Date: Sun, 29 Jan 2023 12:20:01 +0100 Message-ID: X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Jan 29 11:11:36 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5] autolearn=unavailable autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: archive/latest/20752 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/Y9ZUU2fp/l9FNID0@an3as.eu Approved: robomod@news.nic.it Lines: 47 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 29 Jan 2023 12:11:15 +0100 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:14868 Hi, I think there are some remaining issues with numpy 1.24 migration on 32 bit architectures[1]. Here is one example: _________ TestSequence.test_getitem_with_slice_has_positional_metadata _________ self = def test_getitem_with_slice_has_positional_metadata(self): s = "0123456789abcdef" length = len(s) seq = Sequence(s, metadata={'id': 'id3', 'description': 'dsc3'}, positional_metadata={'quality': np.arange(length)}) eseq = Sequence("012", metadata={'id': 'id3', 'description': 'dsc3'}, positional_metadata={'quality': np.arange(3)}) self.assertEqual(seq[0:3], eseq) self.assertEqual(seq[:3], eseq) self.assertEqual(seq[:3:1], eseq) eseq = Sequence("def", metadata={'id': 'id3', 'description': 'dsc3'}, positional_metadata={'quality': [13, 14, 15]}) > self.assertEqual(seq[-3:], eseq) E AssertionError: Seque[128 chars]: int32> E Stats: E length: 3 E ----------------[14 chars]0 def != Seque[128 chars]: int64> E Stats: E length: 3 E ----------------[14 chars]0 def skbio/sequence/tests/test_sequence.py:748: AssertionError How can I ensure that in both cases the arrays have the same type (I think it makes no difference whether it is np.int32 or np.int64 as long as they are of same type. Kind regards Andreas. [1] https://buildd.debian.org/status/package.php?p=python-skbio&suite=experimental -- http://fam-tille.de