Your message dated Tue, 01 Jul 2025 10:49:31 +0000
with message-id <[email protected]>
and subject line Bug#1108325: fixed in dioptas 0.6.1-2
has caused the Debian Bug report #1108325,
regarding dioptas: Calibration fails with deprecated "np.NaN" command
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.)
--
1108325: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1108325
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dioptas
Version: 0.6.1-1
Severity: important
Tags: upstream
X-Debbugs-Cc: [email protected]
Dear Maintainer,
When attempting to run an integration of a 2D image, the program fails with
the message below in the error.log
Changing the "np.NaN" to "np.nan" in line 274 of CalibrationModel.py elimiates
the error
This may be due to the version of NumPy in trixie.
--------------------------------------------------------------------------------
2025-06-25, 16:11:34
--------------------------------------------------------------------------------
<class 'AttributeError'>:
`np.NaN` was removed in the NumPy 2.0 release. Use `np.nan` instead.
--------------------------------------------------------------------------------
File
"/usr/lib/python3/dist-packages/dioptas/controller/CalibrationController.py",
line 553, in calibrate
self.automatic_refinement()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File
"/usr/lib/python3/dist-packages/dioptas/controller/CalibrationController.py",
line 646, in automatic_refinement
self.model.calibration_model.search_peaks_on_ring(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
0, delta_tth, intensity_min_factor, intensity_max, mask
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3/dist-packages/dioptas/model/CalibrationModel.py", line
274, in search_peaks_on_ring
sub_data[np.where(sub_data > upper_limit)] = np.NaN
^^^^^^
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 400, in
__getattr__
raise AttributeError(
...<3 lines>...
)
--------------------------------------------------------------------------------
Dioptas Version: 0.6.1
-- System Information:
Debian Release: 13.0
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.32-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dioptas depends on:
ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
ii libjs-mathjax 2.7.9+dfsg-1
ii libjs-sphinxdoc 8.1.3-5
ii libjs-underscore 1.13.4~dfsg+~1.11.4-3
ii python3 [python3-supported-max] 3.13.3-1
ii python3-extra-data 1.20.0-1
ii python3-fabio 2024.9.0-7
ii python3-h5py 3.13.0-1
ii python3-hdf5plugin 5.1.0-1
ii python3-lmfit 1.3.3-4
ii python3-numexpr 2.10.2-1+b2
ii python3-numpy 1:2.2.4+ds-1
ii python3-opengl 3.1.9+dfsg-1.1
ii python3-pandas 2.2.3+dfsg-9
ii python3-psutil 7.0.0-2
ii python3-pycifrw 4.4.6-4+b1
ii python3-pyepics 3.5.7+ds-1
ii python3-pyfai 2025.03-1
ii python3-pyqt6 6.9.0-2
ii python3-pyqtgraph 0.13.7-5
ii python3-qt-material 2.14-2
ii python3-qtpy 2.4.3-1
ii python3-qtpy-pyqt5 2.4.3-1
ii python3-scipy 1.15.3-1
ii python3-skimage 0.25.2-2
ii python3-watchdog 6.0.0-1
ii python3-xypattern 1.1.2-5+b1
dioptas recommends no packages.
dioptas suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: dioptas
Source-Version: 0.6.1-2
Done: Roland Mas <[email protected]>
We believe that the bug you reported is fixed in the latest version of
dioptas, 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.
Roland Mas <[email protected]> (supplier of updated dioptas 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: Tue, 01 Jul 2025 12:32:08 +0200
Source: dioptas
Architecture: source
Version: 0.6.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian PaN Maintainers
<[email protected]>
Changed-By: Roland Mas <[email protected]>
Closes: 1108325
Changes:
dioptas (0.6.1-2) unstable; urgency=medium
.
* Bug fix: "Calibration fails with deprecated "np.NaN"
command", thanks to Carlo Segre (Closes: #1108325).
Checksums-Sha1:
8d63836eedc3840f823bf7f30929769a345deaa8 2439 dioptas_0.6.1-2.dsc
6991c1f6fc76f4f5e648bacd9d9af1841b88bd46 8328 dioptas_0.6.1-2.debian.tar.xz
b6c171ea7cafb8da1267270e47bd99cb9199aa16 19599 dioptas_0.6.1-2_amd64.buildinfo
Checksums-Sha256:
cba49415aa1bfe025fd4b5bdeb9a3290e5ba8d949a99b66f8ba72bcd73df412b 2439
dioptas_0.6.1-2.dsc
53cb462d6ff7733ad079b917919191258d201c5b30cdb7a39b9e0c3bdd86b73a 8328
dioptas_0.6.1-2.debian.tar.xz
6229e054bfbadd9a17b42b304ae3f2f78917f6b323cc7c1ecd08f74c28705843 19599
dioptas_0.6.1-2_amd64.buildinfo
Files:
a8a49b7d81efc87b787414fd9485452f 2439 python optional dioptas_0.6.1-2.dsc
c8587e377a1785a6225dedfcaa515834 8328 python optional
dioptas_0.6.1-2.debian.tar.xz
5b72ab4199af030da3b32e9fb2bfec03 19599 python optional
dioptas_0.6.1-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEtBU2D1kett1zr/uD0w3s0lmTIvwFAmhjuowACgkQ0w3s0lmT
Ivy2LRAAjB2hMl9Y5JNZiWEenho3iMuKerdZ1km4ylJd8r1JpZ0+XPckuk1bPip4
SLBheGS0Of5fP7RULX3ZX4H2S7JRD7TJrQ3E0bUVeBD1S/0Ed/uYBd14WO8y3fZ8
MpQuHKE5G/5PFM6M7m6PIc9cctiVXUnoUV27Nit4VBIEo+nV+mDzMcR911L5kRQp
BSNeo33pdq1EXIivtuj9AanXiYi4qO15GNU2PIUYDXxK7qjlGh/5zHNdFxgRcaYc
uA9RrQVww/LXqEjSVSG/XpvvFElHL+/b8hMJAqySKox/sf0EZt21Wx2gENk0b45G
LzGRIEsfBO4juL2gT0zUHUo9CSGdWP23lJFuh4PvZ9vNKU4/VtfVqbDJLKQ2gGVG
/EW53lPFPeNkVoNO8LfAOfQFkyeRSIPtgseuWcNlQQJcd9hoZjqydGF4OuPR5OXq
BoM/VCzsEq8S0PEgNu7li1q9yRAy57un2U9MiyCwo/tVummMhf0PRFIQcWroOmN3
VohUpzI5VtARf8QfO/kbS/WVk/8y4ZQ+AUADv2KWL6S2xpwmnx1IE+Jr+jrd/Wk/
yO2B91eXaURKpr06hoFsiFlAvPicfTiUZv6PJ+7KIIHpbn6+IW2YngKx362yyRdN
4nAt7vWsH7/paMhzVQEiL2oTQQCDI/nVyoto+5FE8EKJe5LFbLI=
=PQq2
-----END PGP SIGNATURE-----
pgpFluFL_Glx6.pgp
Description: PGP signature
--- End Message ---