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
JP-3604: Fix possible crashes in the alignment to abs catalog #8450
JP-3604: Fix possible crashes in the alignment to abs catalog #8450
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8450 +/- ##
==========================================
+ Coverage 56.38% 56.50% +0.12%
==========================================
Files 387 387
Lines 38716 38837 +121
==========================================
+ Hits 21830 21945 +115
- Misses 16886 16892 +6 ☔ View full report in Codecov by Sentry. |
@mcara Have you been able to get the data that caused this crash in Ops, in order to test your proposed fix, or do you still need that? |
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, @mcara! It looks good to me, but I added a suggestion to make the code DRYer. ;)
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.
Looks good and fixes the issue.
It's good to add this as a regression test using the data that crashed.
Are we OK to merge this as-is, or do you want to add a regression test to this PR? |
I grabbed the data made available from DMS, which is now in /grp/jwst/ssb/chartreuse/dms_bugs/jp-3604/, and I can't get it fail whether I run it with B10.0, B10.1, or the latest 11.0 dev version. So it's really hard to know what impact this PR will have (i.e. whether it really fixes anything or not). |
I think the issue may be in that they changed the reference parameter file for this step in CRDS. They changed |
89d8f34
to
39bbe84
Compare
@hbushouse Unit test could be added. However, if #8476 is approved, it wouldn't be possible to trigger this crash in |
So I think it is OK to merge this PR and then #8476. |
I reproduced the crash and this PR fixes it. Try passing |
Ah yes, of course. When running with tweakreg.abs_refcat="GAIADR3" I can reproduce the failure. |
A regression test was added in #8477 |
Resolves JP-3604
Closes #8435
This PR improves handling of exceptions in the absolute alignment stage that could result in crashes when image catalogs contain no sources.
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR
Regression test: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1410/