pylidc
pylidc copied to clipboard
fix np.float and np.int to float and int
File "C:\anaconda3\Lib\site-packages\pylidc\Contour.py", line 111, in to_matrix
return np.c_[ij, k].astype(np.int)
^^^^^^
File "C:\Users\a0922\AppData\Roaming\Python\Python311\site-packages\numpy_init_.py", line 319, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'.
np.int
was a deprecated alias for the builtin int
. To avoid this error in existing code, use int
by itself.
File "C:\anaconda3\Lib\site-packages\pylidc\utils.py", line 144, in volume_viewer
for c in find_contours(mask[slc(i)].astype(np.float), 0.5):
^^^^^^^^
File "C:\Users\a0922\AppData\Roaming\Python\Python311\site-packages\numpy_init_.py", line 319, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtin float
. To avoid this error in existing code, use float
by itself.
This PR has 3K lines of code changed. I don't think that was your intent.
fixed by https://github.com/notmatthancock/pylidc/pull/70 ; closing.