-
Notifications
You must be signed in to change notification settings - Fork 171
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
Suppress warnings about NaNs in input data from TweakRegStep #8308
Suppress warnings about NaNs in input data from TweakRegStep #8308
Conversation
46dc688
to
d102466
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8308 +/- ##
==========================================
+ Coverage 75.15% 75.21% +0.05%
==========================================
Files 470 474 +4
Lines 38604 38812 +208
==========================================
+ Hits 29014 29191 +177
- Misses 9590 9621 +31
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Thanks, @jdavies-st.
@larrybradley PEP8 cleanup on aisle 7 is done. |
Regression test run started at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1236 |
b80f5e9
to
bb89734
Compare
Regression test run is clean, as expected. |
Currently
TweakRegStep
logs lots of warnings like the following:which is caused by passing
_cal.fits
data with NaNs tophotutils.background.Background2D
:https://github.com/astropy/photutils/blob/d5e8bc9afebd758087ea47874aff0a1788e22587/photutils/background/background_2d.py#L287-L289
All JWST input data for this step has NaNs, so warning about them is not informative. This PR suppresses those warnings, so we now get:
Possible upstream fix for this in astropy/photutils#1712
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR