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.
As of 1.20, Numpy deprecated
np.float
, and in 1.24, Numpy dropped it entirely. Attempting to fix the problem withs/np.float/float/
resolves that problem, but then thenormed
parameter is not a part ofnp.histogram
. Cutting thenormed
parameter out of the call tohistogram
then restores functionality.As a temporary workaround,
pip install "numpy<1.24"
can downgrade the Numpy installation to the last compatible version.