JohnDMcMaster / faxitron

Faxitron DX-50 x-ray utilities
21 stars 8 forks source link

Numpy 1.24 Compatibility #12

Closed travisgoodspeed closed 1 year ago

travisgoodspeed commented 1 year ago

As of 1.20, Numpy deprecated np.float, and in 1.24, Numpy dropped it entirely. Attempting to fix the problem with s/np.float/float/ resolves that problem, but then the normed parameter is not a part of np.histogram. Cutting the normed parameter out of the call to histogram then restores functionality.

As a temporary workaround, pip install "numpy<1.24" can downgrade the Numpy installation to the last compatible version.