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

Possible update in NumPy triggering warning for NaN addition #260

Closed
rhugonnet opened this issue Apr 20, 2022 · 0 comments · Fixed by #279
Closed

Possible update in NumPy triggering warning for NaN addition #260

rhugonnet opened this issue Apr 20, 2022 · 0 comments · Fixed by #279

Comments

@rhugonnet
Copy link
Member

rhugonnet commented Apr 20, 2022

I've seen tests of volume.py fail several times in the past days due to a RuntimeWarning triggered during NaN addition that we use to initiate our empty arrays (in #227).
For example in line 552 of volume.py:

    values = np.empty((n_bins, unique_indices.shape[0]), dtype=float) + np.nan

The failure was a bit random, so I guess it depends on the version of numpy set up in the environment, and this warning might be a recent addition. If this is the case (I couldn't find confirmation with a quick look), we might have to update a lot of initializations!

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 a pull request may close this issue.

1 participant