-
Notifications
You must be signed in to change notification settings - Fork 158
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-3614: relaxed tolerance for coron unit test #8490
Conversation
Thanks for making this PR. Unfortunately I don't have a good enough understanding of this test or the algorithm to review these changes and determine if this change in tolerance is acceptable. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8490 +/- ##
=======================================
Coverage 57.93% 57.93%
=======================================
Files 387 387
Lines 38839 38852 +13
=======================================
+ Hits 22502 22510 +8
- Misses 16337 16342 +5 ☔ View full report in Codecov by Sentry. |
@braingram these are in units of pixels I believe, so I don't think those absolute tolerances will make much difference. Let me know if you agree or if you have other comments/concerns with this PR |
I requested reviews from the codeowners listed for Line 10 in 3df35ef
My main concern is that I'm not familiar with the code. At the moment I don't feel knowledgeable enough to make a judgement on the change. I think the root cause is a small change in the |
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.
I agree that alignment results to the level of 1e-5 are still quite stringent enough. Really good image registration/alignment results are generally considered to be on the order of 1e-2 at best. So there's still a lot of breathing room here.
Resolves JP-3614
Closes #8465
This PR addresses a unit test failure in
jwst/coron/tests/test_coron.py::test_align_array
on Mac only with the latest scipy version. Similarly to this PR, the problem was caused by changes in the scipy leastsq function, which is used here. The change does not seem to cause any qualitative problems, so simply increasing the tolerance is seemingly fine.I don't know what the "rules" are for needing a changelog entry, but I feel like this deserved the no-changelog-entry-needed tag, as there are no changes to the way the pipeline functions, nor did it feel appropriate to put this under a "testing" header because it doesn't change anything about the test infrastructure, really. But let me know if you do want a changelog entry for cases like this.
Checklist for PR authors (skip items if you don't have permissions or they are not applicable)
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR