Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated numpy dtype #69

Open
function2-llx opened this issue Apr 28, 2024 · 0 comments
Open

Fix deprecated numpy dtype #69

function2-llx opened this issue Apr 28, 2024 · 0 comments

Comments

@function2-llx
Copy link

Numpy has deprecated the aliases of builtin types like np.int since v1.20. When using a recent version of Numpy, exception will be raised when access the deprecated dtype. For example, #64 suggests to replace np.int with np.int_. There are also other examples found in the code:

mask = np.zeros((ni,nj,nk), dtype=np.bool)

for c in find_contours(mask[slc(i)].astype(np.float), 0.5):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant