-
Notifications
You must be signed in to change notification settings - Fork 144
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
Fix deprecations as warnings #738
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## main #738 +/- ##
==========================================
- Coverage 97.15% 97.12% -0.04%
==========================================
Files 42 42
Lines 7872 7884 +12
==========================================
+ Hits 7648 7657 +9
- Misses 224 227 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
matteobachetti
force-pushed
the
fix_deprecation_as_warning
branch
from
June 9, 2023 09:33
266e3fa
to
f5511f4
Compare
dhuppenkothen
approved these changes
Jun 19, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of work in here! Thanks for doing this! Looks good to me.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolve #735
enable_deprecations_as_warnings
does not exist anymore in astropy. The recommended way is to now let all warnings be errors, unless the ones that are ignored or caught properly.This PR eliminates the call to
enable_deprecations_as_warnings
, and contextually, changes the code to be much more robust in catching harmful warnings.My PR is basically a bunch of:
legacy=True
) added to tests so that they did not trigger a warning.All in all, it was a good exercise. The code did throw far too many warnings, and some of them were actually either relevant or safe to eliminate.