-
-
Notifications
You must be signed in to change notification settings - Fork 38
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 for Astropy v7.0 incompatibility (#229) #232
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #232 +/- ##
=======================================
Coverage 83.36% 83.36%
=======================================
Files 13 13
Lines 1136 1136
=======================================
Hits 947 947
Misses 189 189 ☔ View full report in Codecov by Sentry. |
Please rebase to pick up the other CI fix. |
The broader question, though, is whether specreduce should still be using a fitter that is no longer recommended by core astropy library (astropy/astropy#16983). |
…es of 'assert_allclose'.
…e' tests again. They don't matter in practise when we set the absolute tolerances to 0.05 pix.
8905657
to
8e5baae
Compare
It probably shouldn't. Fixing this should be relatively trivial, and I can do it either in this PR or a separate one. |
Actually I am wondering also if relaxing tolerance is even needed if you switch fitter class. |
…ropy.modeling.fitting.LevMarLSQFitter` in `specreduce.tracing.FitTrace`.
It seems still to be required. I've changed the fitter and run the tests, and the results still differ slightly (at a 0.01-pixel level). |
The change to Any preferences? Considering the future, I'd prefer to go with |
I'll defer to specreduce maintainers on which fitters to replace the old one with. Thanks! |
This PR fixes Issue #229 by increasing the absolute and relative tolerances of
assert_allclose
intest_fit_trace_all_nan_col
. An absolute tolerance of 0.05 pixels should be sufficient to test that the tracing methods work correctly but leave enough room for any minor variations in the results caused by the changes in the LevMarLSQFitter between Astropy v6 and v7.Fix #229