[med-svn] [Git][med-team/python-questplus][master] 2 commits: Allow more rounding errors in the tests with scipy 1.14

Graham Inggs (@ginggs) gitlab at salsa.debian.org
Sun Dec 22 12:05:35 GMT 2024



Graham Inggs pushed to branch master at Debian Med / python-questplus


Commits:
6bc0dc92 by Graham Inggs at 2024-12-22T10:05:17-01:00
Allow more rounding errors in the tests with scipy 1.14

- - - - -
e5ec90c0 by Graham Inggs at 2024-12-22T10:09:25-01:00
Prepare for team upload to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/scipy1.14.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-questplus (2023.1-3) unstable; urgency=medium
+
+  * Team upload
+  * Allow more rounding errors in the tests with scipy 1.14
+    (Closes: #1079788)
+
+ -- Graham Inggs <ginggs at debian.org>  Sun, 22 Dec 2024 11:08:54 +0000
+
 python-questplus (2023.1-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/scipy1.14.patch
=====================================
@@ -0,0 +1,23 @@
+Description: Allow more rounding errors in the tests with scipy 1.14
+Bug: https://github.com/hoechenberger/questplus/issues/55
+Bug-Debian: https://bugs.debian.org/1079788
+Author: Graham Inggs <ginggs at debian.org>
+Last-Update: 2024-12-19
+
+--- a/questplus/tests/test_qp.py
++++ b/questplus/tests/test_qp.py
+@@ -435,11 +435,11 @@
+         next_stim_1 =  qp.next_stim['physical_magnitude_stim_1']
+         next_stim_2 =  qp.next_stim['physical_magnitude_stim_2']
+ 
+-        if trial_idx in (6, 20):
++        if trial_idx in (6, 20, 21):
+             # Rounding errors make the algorithm behave differently on different platforms.
+             if (
+-                expected_stim_1 == next_stim_2 and
+-                expected_stim_2 == next_stim_1
++                np.isclose(expected_stim_1, next_stim_2) and
++                np.isclose(expected_stim_2, next_stim_1)
+             ):
+                 expected_stim_1, expected_stim_2 = expected_stim_2, expected_stim_1
+                 response = 'First' if response == 'Second' else 'Second'


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+scipy1.14.patch



View it on GitLab: https://salsa.debian.org/med-team/python-questplus/-/compare/5d69a641db58dbfc82b7380d6955fc003ed37166...e5ec90c037a48320dccf2beffd4f006b0289a761

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-questplus/-/compare/5d69a641db58dbfc82b7380d6955fc003ed37166...e5ec90c037a48320dccf2beffd4f006b0289a761
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/20241222/5f7fa9d9/attachment-0001.htm>


More information about the debian-med-commit mailing list