-
Notifications
You must be signed in to change notification settings - Fork 28
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
Update absolute separation default. #1352
Update absolute separation default. #1352
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1352 +/- ##
=======================================
Coverage 78.57% 78.57%
=======================================
Files 117 117
Lines 7861 7861
=======================================
Hits 6177 6177
Misses 1684 1684
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@ddavis-stsci , mind reviewing? I think we want this to go into B15 so that tweakreg doesn't crash on some SCAs. |
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.
LGTM. Adding a check similar to what was added in spacetelescope/jwst#8476 might make sense as these are user (and pars file) controllable parameters. Having an informative error seems more useful than the step crashing. I don't have any objection to adding this check in a different PR but I suggest we keep the issue open if that's the plan (or make a new one).
Ignore my comment about adding the check. Once this step uses stcal it will inherit the check: |
Perfect. Yeah, I agree that this kind of check makes more sense downstream (really in tweakreg itself?) than in romancal / jwst. |
I okified the regtests and am merging. |
This PR updates the default absolute separation used in tweakreg in romancal, as discussed in #1329.
Closes #1329.
If multiple sources within 'tolerance' can be found, tweakreg may fail. Accordingly, 'separation' should always be larger than 'tolerance.' The default for tweakreg were not consistent with this requirement, which led to a failure to tweak the WCS in some cases. This PR updates the default to avoid this case.
Regression tests fail due to very small differences in the stars that tweakreg selects for matching. This strikes me as okay. There's room in the future to choose better values for these parameters; they should by a few times larger than the expected uncertainty in the pointing. But this resolves the crashes @braingram was seeing.
Checklist
CHANGES.rst
under the corresponding subsection