Your message dated Sun, 22 Dec 2024 11:34:13 +0000
with message-id <[email protected]>
and subject line Bug#1079788: fixed in python-questplus 2023.1-3
has caused the Debian Bug report #1079788,
regarding python-questplus: test_thurstone_scaling fails on arm64 with scipy
1.14
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1079788: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1079788
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-questplus
Version: 2023.1-2
Severity: normal
python-questplus is failing tests on arm64 with scipy 1.14 (from
experimental)
71s ____________________________ test_thurstone_scaling
____________________________
71s
71s def test_thurstone_scaling():
71s """
71s Watson 2017, Example 6:
71s "Thurstone scaling {2, 3, 2}"
71s """
71s stim_magnitudes = np.arange(0, 1+0.1, 0.1)
71s perceptual_scale_maxs = np.arange(1, 10+1)
71s thresholds = np.arange(0, 0.9+0.1, 0.1)
71s powers = np.arange(0.1, 1+0.1, 0.1)
71s
71s # Due to differences in rounding, the order of stimuli (1 or 2) is
swapped on some trials
71s # compared to the paper. We therefore have to swap the example
response as well.
71s #
71s # We're only testing the first 22 trials here.
71s responses = ['Second'] * 6
71s responses.extend(['Second']) # rounding difference
71s responses.extend(['Second'] * 13)
71s responses.extend(['Second']) # rounding difference
71s responses.extend(['First'])
71s
71s expected_stims = [
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.7},
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.6},
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.5},
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.4},
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.0},
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.4},
71s {'physical_magnitude_stim_1': 0.0,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.5,
'physical_magnitude_stim_2': 1.0},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.5,
'physical_magnitude_stim_2': 1.0},
71s {'physical_magnitude_stim_1': 0.5,
'physical_magnitude_stim_2': 1.0},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.5,
'physical_magnitude_stim_2': 1.0},
71s {'physical_magnitude_stim_1': 0.6,
'physical_magnitude_stim_2': 1.0},
71s {'physical_magnitude_stim_1': 0.2,
'physical_magnitude_stim_2': 0.3},
71s {'physical_magnitude_stim_1': 0.6,
'physical_magnitude_stim_2': 1.0},
71s ]
71s
71s qp = QuestPlusThurstone(
71s physical_magnitudes_stim_1=stim_magnitudes,
71s physical_magnitudes_stim_2=stim_magnitudes,
71s thresholds=thresholds,
71s powers=powers,
71s perceptual_scale_maxs=perceptual_scale_maxs
71s )
71s
71s for trial_idx, x in enumerate(zip(expected_stims, responses)):
71s expected_stim, response = x
71s
71s expected_stim_1 = expected_stim['physical_magnitude_stim_1']
71s expected_stim_2 = expected_stim['physical_magnitude_stim_2']
71s
71s next_stim_1 = qp.next_stim['physical_magnitude_stim_1']
71s next_stim_2 = qp.next_stim['physical_magnitude_stim_2']
71s
71s if trial_idx in (6, 20):
71s # Rounding errors make the algorithm behave differently on
different platforms.
71s if (
71s expected_stim_1 == next_stim_2 and
71s expected_stim_2 == next_stim_1
71s ):
71s expected_stim_1, expected_stim_2 = expected_stim_2,
expected_stim_1
71s response = 'First' if response == 'Second' else
'Second'
71s
71s > assert np.isclose(next_stim_1, expected_stim_1)
71s E assert False
71s E + where False = <function isclose at 0xffffb425d470>(1.0,
0.6)
71s E + where <function isclose at 0xffffb425d470> = np.isclose
71s
71s questplus/test_qp.py:447: AssertionError
Full test log at
https://ci.debian.net/packages/p/python-questplus/unstable/arm64/51054054/
--- End Message ---
--- Begin Message ---
Source: python-questplus
Source-Version: 2023.1-3
Done: Graham Inggs <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-questplus, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Graham Inggs <[email protected]> (supplier of updated python-questplus package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 22 Dec 2024 11:08:54 +0000
Source: python-questplus
Built-For-Profiles: noudeb
Architecture: source
Version: 2023.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team
<[email protected]>
Changed-By: Graham Inggs <[email protected]>
Closes: 1079788
Changes:
python-questplus (2023.1-3) unstable; urgency=medium
.
* Team upload
* Allow more rounding errors in the tests with scipy 1.14
(Closes: #1079788)
Checksums-Sha1:
9ae263b3396ef786128c0ed58c4bc58d08891689 2270 python-questplus_2023.1-3.dsc
c05c48c989fab456ed2c1682284481665da434c6 3196
python-questplus_2023.1-3.debian.tar.xz
Checksums-Sha256:
a094f6a0374d103d5ce4391aff840a59e118c61fa3e2846ceb05709581a80401 2270
python-questplus_2023.1-3.dsc
69323950412a8d7a1b3068c27e10022f1bebfe3a89f4ca5f006f7bcdddc3afe3 3196
python-questplus_2023.1-3.debian.tar.xz
Files:
3c12426babe974f32ab917a2d79c4e7a 2270 science optional
python-questplus_2023.1-3.dsc
ce19b4a1815b8af9f9dcaf720f387aa3 3196 science optional
python-questplus_2023.1-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEJeP/LX9Gnb59DU5Qr8/sjmac4cIFAmdn9gMACgkQr8/sjmac
4cIAuw/9ETPX+MGlfVmyLHH+2Ip0K1lZoyC89eZjhnvsknX1lhiSth0/VDRoMHOZ
L7cgMKYF5A6CcWCNhv/GWHshn72Vsw9e3c/ea47aAlpl7oJfw4C2PnHVTptowiF8
FHOU572o2GmUncUgdByw5ZPqGxSSQelweujtcry1XZhy/x86VXPb9UbAqgMu7Jvk
oPaR+MoYy5hBz3E116JeYnGehLDfr/1Hmyst3EblnSM2D4YQKHMV63UX7VgAnwKH
dqCwKg5tYXihx2/usC2p2r3olPgg+bPyq/MnpBgeU8w2+P4Rpy17b5GkCc6E8oJC
+BQ/O3fBYKnk1o5JumVMBWWo1Dg9/y06iXeJ/5GgAuSETruapWqFTiq105CFUfgU
dC0eQ1joltUzvqQdgkMRrYgv6/cWgKkWqD93eIk8OgCBvzXcQzI3eNqCr7i6LvNe
zMOGMTINs2nEP6lhudCnNwHegoiZrBwwbdGz+BQLhnXyBwR/W7jyuRMtD/Wv/BjN
IS8vV6VP4VaPKbPvcSY4i+t/0lXmqz7QnsC5E9d6X6Vy5V+DRDjXH67CarrbMfsu
ve/DwEVOktgKSKueKbclQJ9iUQgL6boeVFCOnY2f+QGJdNdD2j8dl3QZmegxjIV/
CaK8qz2IDXbYDLejc6C+DyZk0NhGwQguV1KKQ2JEHKaVm5YfQc4=
=xXS8
-----END PGP SIGNATURE-----
pgpb_6qRBNUvu.pgp
Description: PGP signature
--- End Message ---