[From nobody Tue May 26 14:07:06 2026
Received: (at submit) by bugs.debian.org; 6 Feb 2023 19:11:42 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.8 required=4.0 tests=BAYES_00,FROMDEVELOPER,
 HAS_PACKAGE,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 65; hammy, 138; neutral, 30; spammy,
 0. spammytokens: hammytokens:0.000-+--armhf, 0.000-+--pkgbuilddir,
 0.000-+--PKGBUILDDIR, 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug
Return-path: &lt;dparsons@debian.org&gt;
Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:46351)
 by buxtehude.debian.org with esmtps
 (TLS1.2:ECDHE_X25519__RSA_SHA512__AES_256_GCM:256) (Exim 4.94.2)
 (envelope-from &lt;dparsons@debian.org&gt;) id 1pP6ty-002QiG-E4
 for submit@bugs.debian.org; Mon, 06 Feb 2023 19:11:42 +0000
Received: (Authenticated sender: webmail@emerall.com)
 by mail.gandi.net (Postfix) with ESMTPSA id 1211260005
 for &lt;submit@bugs.debian.org&gt;; Mon,  6 Feb 2023 19:11:37 +0000 (UTC)
Received: from drew by sandy with local (Exim 4.96)
 (envelope-from &lt;dparsons@debian.org&gt;) id 1pP6be-003Otb-1k;
 Mon, 06 Feb 2023 19:52:46 +0100
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Drew Parsons &lt;dparsons@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: python3-pymatgen: WavecarTest.test_get_parchg fails on most arches
Message-ID: &lt;167570956647.810380.1015154095319907359.reportbug@sandy&gt;
X-Mailer: reportbug 11.6.0
Date: Mon, 06 Feb 2023 19:52:46 +0100
Delivered-To: submit@bugs.debian.org

Package: python3-pymatgen
Version: 2022.11.7+dfsg1-2
Severity: normal

WavecarTest.test_get_parchg (io/vasp/tests/test_outputs.py) fails on
many arches.  Oddly, it passes on armel and armhf (and, less
surpirisingly, amd64).

The ubiquity of the error suggests it's a specific code problem that
can be fixed.  So report upstream if it still occurs with the latest
upstream version (which we don't have just yet).

The error is:

_________________________ WavecarTest.test_get_parchg __________________________

self = &lt;vasp.tests.test_outputs.WavecarTest testMethod=test_get_parchg&gt;

    def test_get_parchg(self):
        poscar = Poscar.from_file(self.TEST_FILES_DIR / &quot;POSCAR&quot;)
    
        w = self.w
        c = w.get_parchg(poscar, 0, 0, spin=0, phase=False)
        self.assertTrue(&quot;total&quot; in c.data)
        self.assertTrue(&quot;diff&quot; not in c.data)
        self.assertEqual(np.prod(c.data[&quot;total&quot;].shape), np.prod(w.ng * 2))
        self.assertTrue(np.all(c.data[&quot;total&quot;] &gt; 0.0))
    
        c = w.get_parchg(poscar, 0, 0, spin=0, phase=True)
        self.assertTrue(&quot;total&quot; in c.data)
        self.assertTrue(&quot;diff&quot; not in c.data)
        self.assertEqual(np.prod(c.data[&quot;total&quot;].shape), np.prod(w.ng * 2))
        self.assertFalse(np.all(c.data[&quot;total&quot;] &gt; 0.0))
    
        w = Wavecar(self.TEST_FILES_DIR / &quot;WAVECAR.N2.spin&quot;)
        c = w.get_parchg(poscar, 0, 0, phase=False, scale=1)
        self.assertTrue(&quot;total&quot; in c.data)
        self.assertTrue(&quot;diff&quot; in c.data)
        self.assertEqual(np.prod(c.data[&quot;total&quot;].shape), np.prod(w.ng))
        self.assertTrue(np.all(c.data[&quot;total&quot;] &gt; 0.0))
        self.assertFalse(np.all(c.data[&quot;diff&quot;] &gt; 0.0))
    
        c = w.get_parchg(poscar, 0, 0, spin=0, phase=False)
        self.assertTrue(&quot;total&quot; in c.data)
        self.assertTrue(&quot;diff&quot; not in c.data)
        self.assertEqual(np.prod(c.data[&quot;total&quot;].shape), np.prod(w.ng * 2))
        self.assertTrue(np.all(c.data[&quot;total&quot;] &gt; 0.0))
    
        c = w.get_parchg(poscar, 0, 0, spin=0, phase=True)
        self.assertTrue(&quot;total&quot; in c.data)
        self.assertTrue(&quot;diff&quot; not in c.data)
        self.assertEqual(np.prod(c.data[&quot;total&quot;].shape), np.prod(w.ng * 2))
        self.assertFalse(np.all(c.data[&quot;total&quot;] &gt; 0.0))
    
        w = self.w_ncl
        w.coeffs.append([np.ones((2, 100))])
        c = w.get_parchg(poscar, -1, 0, phase=False, spinor=None)
        self.assertTrue(&quot;total&quot; in c.data)
        self.assertTrue(&quot;diff&quot; not in c.data)
        self.assertEqual(np.prod(c.data[&quot;total&quot;].shape), np.prod(w.ng * 2))
&gt;       self.assertFalse(np.all(c.data[&quot;total&quot;] &gt; 0.0))
E       AssertionError: True is not false

/&lt;&lt;PKGBUILDDIR&gt;&gt;/.pybuild/test_python3.11/pymatgen/io/vasp/tests/test_outputs.py:2107: AssertionError
]