-
Notifications
You must be signed in to change notification settings - Fork 169
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
Cube Build JP 3016 allow custom suffix and other improvements #7521
Cube Build JP 3016 allow custom suffix and other improvements #7521
Conversation
5bf3fb6
to
a892380
Compare
There are changes in cube_build_step at the end of the program that pull out how we deal with the single IFU cube case the typical IFUs. This was done when I was writing out the output files for testing in_memory=False option. Depending on how we update the outlier detection code I might need to write out the files to disk - so I just kept these changes. I decided to remove these changes because it might complicate the review. If these changes are needed after we decide how output detection will be changed I will add them back in |
Can't say as it's obvious to me what the majority of those changes do, but presumably the various test cases have unchanged results? |
Regression tests started at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/626 |
A lot of tests are failing. See the results of the full regtest run at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/626/testReport/junit/. It's a mixture of both unit tests and regression tests that are all throwing errors. |
45a23c9
to
8d1466e
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #7521 +/- ##
==========================================
- Coverage 77.56% 77.54% -0.03%
==========================================
Files 452 452
Lines 36211 36232 +21
==========================================
+ Hits 28087 28095 +8
- Misses 8124 8137 +13
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Another regtest run started at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/628 |
Still getting some hard errors in regression tests: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/628/testReport/ |
…se that are not used now
fc00c55
to
a75ee90
Compare
c565c42
to
59900c4
Compare
Latest regtest run has solved all errors but one: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/630/testReport/jwst.regtest/test_miri_cubebuild/_stable_deps__test_cube_build_miri_internal_cal/ @jemorrison Try running that one regtest locally in your PR branch and see what the new output file name is. |
Ha. We do not allow miri internal_cal any more. That was never confirmed in commissioning. Instead for these types of cubes the team used coord_system='ifu_align'. |
Yay! We FINALLY got an error-free regtest run at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/631/. Just shows 1 minor difference in a keyword comment field, which is expected. So I think this is good to go! |
Hallelujah ! |
Resolves JP-3016
Closes #7367
This PR addresses allowing the user to provide a custom suffix. Some improvements were made to manage the memory more efficiently. A few arrays that were not being used any longer were removed. In addition, it removed the option for users with MIRI data to use the coord_system='internal_cal'. 'internal_cal' was designed for NIRSpec and never tested in commissioning. Instead miri users wanting an IFUcube aligned with the ifu plane should use 'coord_system=ifualign'.
A very large effort was made to see if having an option 'in_memory' the way outlier_detection uses such an option was tested. Basically setting in_memory=False would write out out IFU cubes and single IFUCubes if doing outlier detection to disk instead of storing them in memory. When just build typical IFUCube this did not save much memory. So I have put adding this option to cube_build until we better know how outlier detection for IFU is going to be re-designed.
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR