mantidproject / mslice

Source code for Mantid MSlice
http://mantidproject.github.io/mslice
1 stars 2 forks source link

Fix deprecated conversion #975

Closed SilkeSchomann closed 6 months ago

SilkeSchomann commented 7 months ago

The test test_sample_temperature_list in IntensityCorrectionAlgsTest is now failing. This is caused by the following deprecation warning: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)

To fix this, sample_temperature in intensity_correction_algs needs to be updated when trying to convert a list of temperatures to a float.