-
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
Undo change that prevents cal files from being used by AmiAnalyze step #8448
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8448 +/- ##
===========================================
- Coverage 75.31% 54.75% -20.56%
===========================================
Files 474 390 -84
Lines 38965 38866 -99
===========================================
- Hits 29345 21281 -8064
- Misses 9620 17585 +7965
☔ View full report in Codecov by Sentry. |
@braingram This is a very small change but I found during testing that one of the style fixes (rcooper295@22bcd01#diff-f26eee7b1441cc9775a50494797469aba0463211f4f09ef418ac407a6eea5798R78) now results in an error when trying to process 2D cal files. The |
Thanks for opening the PR and describing the issue. Any ideas as to why the change is breaking the step test?
Do you have an example of a file that you'd like to work that is not currently working? This might make for a useful new regression test (just running that cal file). |
I can definitely provide a cal file that worked with this change. I'm not sure from looking at the test exactly why that error is happening now though, that is odd. cal file here: /user/rcooper/Projects/NIRISS/AMI/ami3_update/ami3_regtest/jw04478001001_03102_00001_nis_cal.fits |
Thanks for uploading the file. I did some testing with it and came up with an alternative approach for supporting cal files by converting the input @rcooper295 would you give the changes in: #8451 a try with the file you shared (and any other you have on hand that you think would be helpful). I uploaded the file you shared as the input for a new regtest in the linked PR: |
@rcooper295 I'm closing this in favor of #8451 Thanks for finding and describing the issue! |
This PR addresses a small issue introduced by merging #7862 which prevented cal.fits files from being used as input by the AmiAnalyze step. While the default input will be calints files, we still want to have the option of processing cal files. Changing the way the file is opened as a datamodel fixes this (opening as a generic datamodel rather than allowing datamodels to figure out what kind of model to use).
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR