Problem with using trapz normalisation due to removal in Numpy in PyMCA PyPi release version - 5.9.4.
From Numpy 2.4.0 release notes:
numpy.trapz — deprecated since NumPy 2.0 (2023-08-18). Use numpy.trapezoid or scipy.integrate functions instead.
In PyMCA get the following error when trying to normalise with this method:
PyMca5\PyMcaPlugins\NormalizationPlugins.py", line 238, in offsetAndArea
y = y / numpy.trapz(y, x)
^^^^^^^^^^^
...
AttributeError: module 'numpy' has no attribute 'trapz'. Did you mean: 'trace'?
Problem with using trapz normalisation due to removal in Numpy in PyMCA PyPi release version - 5.9.4.
From Numpy 2.4.0 release notes:
In PyMCA get the following error when trying to normalise with this method: