-
Notifications
You must be signed in to change notification settings - Fork 7
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 'NAN'. Did you mean: 'nan'? #21
Comments
hmm - thats odd. Do you have permissions to trigger the tests manually ? e.g. at https://github.com/COSIMA/esmgrids/actions/workflows/ci.yml ? |
I've never used np.NAN before. Not sure how it might have worked previously. |
It looks like np.NAN was deprecated with numpy 2.0 (released mid 2024). Specifying "numpy ==1.26.4" in |
changing |
Yeah good - I just wasn't sure if their could be other unexpected differences with numpy 2 ! |
I'll open a PR |
This was closed through #23 We decided to revert to numpy 1 as the ocean_model_grid_generator test dependency also didn't work with numpy 2. I raised an issue on that repo see ACCESS-NRI/ocean_model_grid_generator#2 |
When running
cice_from_mom
to fix COSIMA/access-om3#252 I getsee esmgrids/mom_grid.py#L176.
Is
np.NAN
an alias ofnp.nan
that's only available in some versions of numpy? ie should we usenp.nan
throughout the code instead?The text was updated successfully, but these errors were encountered: