[Debian-pan-maintainers] Bug#1108325: dioptas: Calibration fails with deprecated "np.NaN" command

Carlo Segre segre at debian.org
Wed Jun 25 23:39:58 BST 2025


Package: dioptas
Version: 0.6.1-1
Severity: important
Tags: upstream
X-Debbugs-Cc: segre at debian.org

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



More information about the Debian-pan-maintainers mailing list