Skip to content
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-3436 Empty wavelength array in s2d products #8374

Merged
merged 20 commits into from
May 6, 2024

Conversation

penaguerrero
Copy link
Contributor

@penaguerrero penaguerrero commented Mar 20, 2024

Resolves JP-3436

Closes #7994

This PR populates the wavelength array in the s2d files.

Checklist for maintainers

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • Make sure the JIRA ticket is resolved properly

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.39%. Comparing base (6580914) to head (438a9d3).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8374   +/-   ##
=======================================
  Coverage   56.38%   56.39%           
=======================================
  Files         387      387           
  Lines       38716    38723    +7     
=======================================
+ Hits        21830    21837    +7     
  Misses      16886    16886           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@penaguerrero
Copy link
Contributor Author

@penaguerrero penaguerrero changed the title WIP: JP-3436 Empty wavelength array in s2d products JP-3436 Empty wavelength array in s2d products Mar 20, 2024
@hbushouse hbushouse added this to the Build 11.0 milestone Apr 2, 2024
@hbushouse hbushouse requested a review from nden April 4, 2024 11:44
@hbushouse
Copy link
Collaborator

@nden Need your expert insight as to whether this will have the desired effect.

@nden
Copy link
Collaborator

nden commented Apr 5, 2024

The code looks good to me but don't take my word for it. It won't hurt to add tests verifying that the wavelength array is identical to the computed one. The miri slit test can go in test_miri_lrs_slit_spec3 or in a separate test.
Similarly for the other modes.
The regression test run has many failures possibly due to other changes. It's also not very informative because FITS changes the order of extensions so there's no real comparison. We need a fresh run.

@penaguerrero
Copy link
Contributor Author

I checked the MIRI LRS truth and as of now it has a wavelength array of all zeros, same with the NRS data. I can add these tests for the future, but for now I think we'll have to "okayfy" them?

@nden
Copy link
Collaborator

nden commented Apr 16, 2024

What I meant is adding a test to check in all modes that model.wavelength is close enough to a computed_wavelength array, where computed_wavelength=WCS(x,y)[2].

@penaguerrero
Copy link
Contributor Author

@hbushouse
Copy link
Collaborator

Something's causing errors in the CI style check:

jwst/regtest/test_miri_lrs_slit_spec3.py:90:21: F821 Undefined name `slit`
jwst/regtest/test_nirspec_fs_spec3.py:57:21: F821 Undefined name `slit`
jwst/regtest/test_nirspec_mos_spec3.py:49:17: F821 Undefined name `slit`

@nden
Copy link
Collaborator

nden commented May 2, 2024

Failures were fixed in #8456
Regression test run started: https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/1416/

@hbushouse
Copy link
Collaborator

CI tests are passing and all the failures in the last regtest run appear to simply be due to the presence of the WAVELENGTH extension in s2d products, which wasn't there before. So I think everything looks good (?)

CHANGES.rst Outdated Show resolved Hide resolved
@nden nden merged commit 9f70097 into spacetelescope:master May 6, 2024
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty wavelength array in s2d products
3 participants