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

Replace Deprecated np.float with np.float64 in nd2reader #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mansouralawi
Copy link

Overview

This PR addresses the issue where np.float causes an attribute error in the nd2reader package. The error is due to the deprecation of np.float in newer versions of NumPy.

Changes

  • Replaced all instances of np.float with np.float64.

Related Issues

#69 #67

Notes

  • The change adheres to the recommendations found in the NumPy 1.20 release notes regarding the deprecation of np.float.

@clementhelsens
Copy link

Thanks for this, I also encountered the same issue using a more recent version of numpy and had to implement the same fixes as yours. Hope the authors will merge and release a new version soon such that we do not need to patch the code

@ggirelli
Copy link
Contributor

Is this change backward compatible with older numpy versions? If not, we should at least update the requirements https://github.com/Open-Science-Tools/nd2reader/blob/master/requirements.txt

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

Successfully merging this pull request may close these issues.

3 participants