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

AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. #4

Open
mariaapostigo opened this issue Sep 26, 2024 · 0 comments

Comments

@mariaapostigo
Copy link

tp_sum = np.cumsum(tps, axis=1).astype(dtype=np.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. si el fichero no es mío

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