-
Notifications
You must be signed in to change notification settings - Fork 25
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
PSF data model #336
base: main
Are you sure you want to change the base?
PSF data model #336
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #336 +/- ##
==========================================
+ Coverage 67.52% 67.60% +0.07%
==========================================
Files 114 115 +1
Lines 5916 5927 +11
==========================================
+ Hits 3995 4007 +12
+ Misses 1921 1920 -1 ☔ View full report in Codecov by Sentry. |
@spacetelescope/stdatamodels-maintainers ready for review |
@braingram @emolter I could use a review of this code to get it into the pipeline to be used with the new reference file |
Is this in support of spacetelescope/jwst#8967? Also, is there an example file? |
That is the right PR for this change. The new model is used here: Example file is on CRDS test: The PR for JP-251 has not yet been updated to match this format for the file though -- it currently expects an earlier version of the file, with a 1D wavelength array. |
src/stdatamodels/jwst/datamodels/schemas/miri_lrs_psf.schema.yaml
Outdated
Show resolved
Hide resolved
Thanks! |
It looks like the reference file is only on test at the moment. I suspect we will want to update
If we make that update as part of this PR will it break this test? Also is there a way to run that test against jwst-test to confirm the update/model is working?
|
@melanieclarke @braingram I would think that if the reference file is only in crds-test that if we update the test test_schema_against_crds.py it would break the system. |
My hunch is that if we update the test now to know that If we don't update the test when test gets mapped to ops the test_schema_against_crds.py will find a I will try to look at this today or tomorrow. |
@melanieclarke Change the wavelength array back to 1 D |
I tested this PR with
@jemorrison would you update the above mentioned test with the change so that test won't start failing when ops is updated? |
@@ -0,0 +1 @@ | |||
added MIRI LTS FIXED SLIT PSF reference model |
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.
added MIRI LTS FIXED SLIT PSF reference model | |
added MIRI LRS FIXED SLIT PSF reference model |
The |
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.
Now that #371 is merged (with the "skip" for the psf
reftype) when you update this PR would you remove the "skip" and update the test as mentioned in: #336 (comment)
Thanks!
I'm testing out what would need to be done to extend this work to NIRSpec, and I'm wondering if there is anything MIRI LRS specific about this model. Would it make sense to name it something more general so we can use the same model for other modes? Like maybe call it SlitPSFModel, include a dispersion axis, and rename the center_col keyword to cross_dispersion_center or something like that? |
Supports JP-251
This PR adds a PSF reference data model to support PSF-based extraction for MIRS LRS FIXED slit data in the JWST pipeline.
Tasks
docs/
pageno-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)jwst
regression tests with this branch installed ("git+https://github.com/<fork>/stdatamodels@<branch>"
)news fragment change types...
changes/<PR#>.feature.rst
: new featurechanges/<PR#>.bugfix.rst
: fixes an issuechanges/<PR#>.doc.rst
: documentation changechanges/<PR#>.removal.rst
: deprecation or removal of public APIchanges/<PR#>.misc.rst
: infrastructure or miscellaneous change