pyraf
pyraf copied to clipboard
Incompatible with numpy 2.0
In numpy 2.0, it is not allowed to convert out-of-bound Python integers to integer arrays. In numpy 1.26.4, it is just a deprecation warning. The code influenced by such change that I found so far is the 'init' method for class 'IrafHatchFills' in file gki.py, which causes an error when using splot in pyraf.
It is recommanded by numpy to use 'np.array(value).astype(dtype)' rather than simply convert it to an array.
using the way numpy recommanded: