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

Numpy no longer includes warnings module as attribute as of numpy v1.24.3 #89

Merged
merged 10 commits into from
Jun 7, 2023

Conversation

torresramiro350
Copy link
Contributor

Numpy no longer has the attribute warnings and causes some of the tests to fail. This is because of the call to numpy.warnings.catch_warnings() from hawc_hal/healpix_handling/gnomonic_projection.py. The issue can be fixed by simply importing warnings as most of the desired functionality comes from that module.

Aside from fixing the issue mentioned above, there are some minor differences, such as the formatting of the code and removing a few unused module imports.

Copy link
Contributor

@xiaojieww xiaojieww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, will merge it.

@xiaojieww xiaojieww merged commit ce74038 into threeML:master Jun 7, 2023
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.

2 participants