numpy 1.24 (in)compatibility #2416
Labels
Blocked
Issues that are blocked by something
Infrastructure
GitHub, project structure, community etc
Spring Cleaning 2024
numpy 1.24 has now been released and so we will at some stage need compatibility with it. So far, I've only spotted 4 tiny things that need fixing, related to removal of deprecated functions. In particular, numpy 1.24 has finally removed the deprecated
np.float
definition. This should either be replaced byfloat
if machine-variation is permitted (i.e. 32 bit or 64 bit depending on the architecture), ornp.float64
if a specific size is needed.See: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
This is fortunately quite easy to fix in a backwards compatible way:
https://sources.debian.org/src/sasview/sid/debian/patches/numpy-1.24.patch/
The failures in
p_invertor.py
are caught by the test suite; I grepped the source looking for other instances which turned up the instance in GuiUtils.py.SasView version (please complete the following information):
Operating system (please complete the following information):
The text was updated successfully, but these errors were encountered: