notmatthancock / pylidc

An object relational mapping for the LIDC dataset using sqlalchemy.
https://pylidc.github.io
Other
105 stars 41 forks source link

fix np.float and np.int to float and int #61

Closed jason660519 closed 4 months ago

jason660519 commented 1 year ago

File "C:\anaconda3\Lib\site-packages\pylidc\Contour.py", line 111, in tomatrix 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.

notmatthancock commented 11 months ago

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

notmatthancock commented 4 months ago

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