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

Some updates may needed for numpy version >=1.24.0 #34

Open
NengLu opened this issue Mar 28, 2023 · 2 comments
Open

Some updates may needed for numpy version >=1.24.0 #34

NengLu opened this issue Mar 28, 2023 · 2 comments

Comments

@NengLu
Copy link

NengLu commented Mar 28, 2023

File "badlands/surface/raster2TIN.py", line 121, in _raster_edges
    dtype=numpy.float,
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. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.

np.float may need to be updated to np.float64 if the recent version numpy is imported, as numpy 1.24.0 removed these aliases (e.g. numpy.float) completely.

@RichardScottOZ
Copy link

Yes, this is deprecated for np.float64 specifically for an example.

@rbrtmch
Copy link

rbrtmch commented Jul 27, 2023

For those looking for a workaround, pip install numpy<1.24

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

3 participants