-
Notifications
You must be signed in to change notification settings - Fork 167
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
WIP: JP-3248 MIRI Subarrays 390 Hz EMI #7857
Conversation
ec15ceb
to
1d1d26e
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7857 +/- ##
==========================================
+ Coverage 75.18% 75.24% +0.05%
==========================================
Files 467 470 +3
Lines 38102 38420 +318
==========================================
+ Hits 28647 28908 +261
- Misses 9455 9512 +57
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
698cdb1
to
9acfbba
Compare
a31a6dc
to
5cdc16f
Compare
8e0c13e
to
66ecbf7
Compare
Need to request a new pmap for CRDS so that the code knows about any potential entry for the new step. |
c099282
to
66ecbf7
Compare
326bfb7
to
53b4d00
Compare
81ef3ba
to
46c8332
Compare
46c8332
to
2bf8963
Compare
4959437
to
26548a3
Compare
26548a3
to
71dffc7
Compare
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.
Only gotten through the first half of the files so far. More to come ...
71dffc7
to
ae1b2a9
Compare
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.
OK, finished going through everything now. That's a lot of new code! Mostly minor comments everywhere.
ab2529e
to
042aa34
Compare
These changes should fix the formatting of the numbered list and footnotes.
The docs now build but I had to remove the % and type the word instead... I don't like that solution tho. |
I committed more reformatting of that rst file and the percent sign now works OK. I think it was really the bad formatting of the numbered list that was screwing it up. See https://jwst-pipeline--7857.org.readthedocs.build/en/7857/jwst/emicorr/description.html |
Started a regtest run at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1097 |
Everything here looks good, but seeing a number of errors in the regtest run. Will need to wait till they finish to investigate. Hopefully they're unrelated. |
Rats. All the errors in the regtest run are due to the use of CRDS-OPS, which doesn't yet have definitions for the new "emicorr" reference file type, hence all the calls to retrieve the ref file throw an error. Need to switch to using CRDS_TEST. Will start a new regtest using that. |
the docs look good except for the formatting of the reference file description, I think i need to add a white line so that the ASDF tree looks like we want |
Attempting to maintain the ASDF dictionary tree format
ok, the docs built and the tree looks ok but not pretty: https://jwst-pipeline--7857.org.readthedocs.build/en/7857/jwst/emicorr/reference_files.html |
You could try enclosing the tree text in a literal block. To do that, end the preceding paragraph with "::" and then have your ascii text tree indented, with a blank line before and after, e.g.
|
second attempt to fix ASDF dictionary tree format
yay! that worked! https://jwst-pipeline--7857.org.readthedocs.build/en/7857/jwst/emicorr/reference_files.html |
Still getting errors in regtests, even when using emicorr ref file from CRDS_TEST. Here's what I've found:
test_miri_dark is complaining that it can't find an emicorr ref file in CRDS. This might be due to the test data file having a DATE-OBS that's older than 2022-04-01, which is the USEAFTER on the emicorr ref file. Which, in my opinion is stupid. Why not have the USEAFTER go all the way back to cover all possible existing MIRI data. Surely the EMI problem did not just start in April 2022. |
@penaguerrero Please try running jwst/regtest/test_miri_image.py locally to debug why it's crashing. See https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1098/testReport/jwst.regtest/test_miri_image/_stable_deps__test_miri_image_detector1_dq_init_/ for the traceback we're getting in the regtest. |
ok! Reg tests ran with some failures but not associated to this PR: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1099/#showFailuresLink |
This run is again showing all of the "E crds.core.exceptions.CrdsLookupError: Error determining best reference for 'emicorr' = Unknown reference type 'emicorr'" errors, even for MIRI datasets, presumably because it was run using CRDS Ops, but the new emicorr ref file only exists in CRDS_TEST. Need to run again with "CRDS_PATH=/grp/crds/jwst/test" set in the "ENV_VARS" box that comes up after you click on "Build with Parameters" to start the run. |
Woot! Regtest run https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1101/ shows differences (but no crashes) in the MIRI tests that use subarrays due to new keywords:
and slight changes to pixel values, so that looks like the step is running! |
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 hereby approve this PR.
Resolves JP-3248
Closes #7729
This PR addresses the creation of a new step to correct MIRI images for EMI contamination.
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR