pylidc icon indicating copy to clipboard operation
pylidc copied to clipboard

fix np.float and np.int to float and int

Open jason660519 opened this issue 1 year ago • 1 comments

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.

jason660519 avatar Sep 17 '23 01:09 jason660519

This PR has 3K lines of code changed. I don't think that was your intent.

notmatthancock avatar Dec 01 '23 03:12 notmatthancock

fixed by https://github.com/notmatthancock/pylidc/pull/70 ; closing.

notmatthancock avatar Jun 20 '24 13:06 notmatthancock