Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10612
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stuart Prescott <stuart@debian.org> |
| Newsgroups | linux.debian.maint.python, linux.debian.devel.mentors |
| Followup-To | gmane.linux.debian.devel.python |
| Subject | Re: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead (Was: Bug#899205: python-cogent: Test suite fails with latest matplotlib) |
| Date | Tue, 05 Jun 2018 17:30:01 +0200 |
| Message-ID | <vXm4h-7gs-3@gated-at.bofh.it> (permalink) |
| References | <vRCv7-cf-3@gated-at.bofh.it> <vXegp-2q2-5@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Tue Jun 5 15:25:17 2018 |
| Old-Return-Path | <debian-python@m.gmane.org> |
| X-Amavis-Spam-Status | No, score=-1.937 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, EMPTY_BODY=3, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RDNS_NONE=0.793] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate:hard: -6.1 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| Lines | 113 |
| MIME-Version | 1.0 |
| Content-Type | multipart/mixed; boundary="nextPart1825179.oMNUckLgyt" |
| User-Agent | KNode/4.14.10 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/16020 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/pf69rs$ko9$2@blaine.gmane.org |
| Approved | robomod@news.nic.it |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | debian-mentors@lists.debian.org |
| X-Original-Date | Wed, 06 Jun 2018 01:24:47 +1000 |
| X-Original-Message-ID | <pf69rs$ko9$2@blaine.gmane.org> |
| X-Original-References | <152684522758.4222.11590707346813164766.reportbug@mail.an3as.eu> <20180605070020.7fphb6rbf76os4wh@an3as.eu> |
| X-Original-X-Complaints-To | usenet@blaine.gmane.org |
| Xref | csiph.com linux.debian.maint.python:10612 linux.debian.devel.mentors:41210 |
Cross-posted to 2 groups.
Followups directed to: gmane.linux.debian.devel.python
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hi Andreas, > ====================================================================== > ERROR: test_consistent_gap_degen_handling > (test_core.test_sequence.ModelSequenceTests) gap degen character should be > treated consistently > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/tmp/autopkgtest- lxc.5a99fnj6/downtmp/autopkgtest_tmp/tests/test_core/test_sequence.py", > line 660, in test_consistent_gap_degen_handling > self.assertEqual(dna.stripBadAndGaps(), raw_ungapped) > File "/usr/lib/python2.7/dist-packages/cogent/core/sequence.py", line > 1251, in stripBadAndGaps > valid_indices -= self._data == i > TypeError: numpy boolean subtract, the `-` operator, is deprecated, use > the bitwise_xor, the `^` operator, or the logical_xor function instead. > > ====================================================================== The error message basically describes the solution -- patch attached. Quite what the original meaning of "bool - bool" was supposed to be is hard to discern (and that is why numpy has deprecated it). You should get upstream to look at this carefully. Note that there is more than one test that fails like this. There also may be other places depending on how good their test coverage is. There are also failing doctests; a patch for them also attached, permitting the test to work with both old and new numpy. These two patches only get the package to compile though. Lintian will then tell you about other RC bugs that you need to fix prior to upload. regards Stuart -- Stuart Prescott http://www.nanonanonano.net/ stuart@nanonanonano.net Debian Developer http://www.debian.org/ stuart@debian.org GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Re: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead (Was: Bug#899205: python-cogent: Test suite fails with latest matplotlib) Stuart Prescott <stuart@debian.org> - 2018-06-05 17:30 +0200
csiph-web