-
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
Address (some) keyword differences #354
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #354 +/- ##
=======================================
Coverage 67.52% 67.52%
=======================================
Files 114 114
Lines 5916 5916
=======================================
Hits 3995 3995
Misses 1921 1921 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
("PRIMARY", "FOCUSPOS"): { | ||
"type": { | ||
"dmd": { | ||
"union": {"integer"}, |
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.
FOCUSPOS for nirspec is listed as "steps" and of type "integer". For niriss and fg it's listed as "mm" and of type "float".
Adding this expected difference allows it to be listed as a "number" in the datamodel schema.
("PRIMARY", "MRSPRCHN"): { | ||
"enum": { | ||
"dmd": { | ||
"difference": {"ALL"}, |
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 wasn't quite sure about this one but the datamodel schemas list "ALL" but the keyword dictionary does not.
type: integer | ||
enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |
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.
The keyword dictionary doesn't have an "enum" for this keyword and states "Possible values are 1-10" (note the absence of 0). I chose for this PR to remove the enum.
HDU: POINTING KEYWORD: DDCFLDPT
HDU: POINTING KEYWORD: DEC_DDC
HDU: POINTING KEYWORD: DEC_J1
HDU: POINTING KEYWORD: DEC_V1
HDU: POINTING KEYWORD: JITTRAVG
HDU: POINTING KEYWORD: JITTRMAX
HDU: POINTING KEYWORD: JITTRMIN
HDU: POINTING KEYWORD: PA_APER
HDU: POINTING KEYWORD: PA_J3
HDU: POINTING KEYWORD: PA_V3
HDU: POINTING KEYWORD: POINTTIM
HDU: POINTING KEYWORD: RA_DDC
HDU: POINTING KEYWORD: RA_J1
HDU: POINTING KEYWORD: RA_V1
HDU: PRIMARY KEYWORD: CAL_VCS
HDU: PRIMARY KEYWORD: CAL_VER
HDU: PRIMARY KEYWORD: COMPRESS
HDU: PRIMARY KEYWORD: CORONMSK
HDU: PRIMARY KEYWORD: DATAMODL
HDU: PRIMARY KEYWORD: DATE
HDU: PRIMARY KEYWORD: DIRIMAGE
HDU: PRIMARY KEYWORD: FILENAME
HDU: PRIMARY KEYWORD: GSC_VER
HDU: PRIMARY KEYWORD: HGA_MOVE
HDU: PRIMARY KEYWORD: HGA_STOP
HDU: PRIMARY KEYWORD: HGA_STRT
HDU: PRIMARY KEYWORD: LAMP
HDU: PRIMARY KEYWORD: MSASTATE
HDU: PRIMARY KEYWORD: NOD_TYPE
HDU: PRIMARY KEYWORD: NUMDSETS
HDU: PRIMARY KEYWORD: NWFSEST
HDU: PRIMARY KEYWORD: OPMODE
HDU: PRIMARY KEYWORD: ORIGIN
HDU: PRIMARY KEYWORD: OSS_VER
HDU: PRIMARY KEYWORD: PATTSIZE
HDU: PRIMARY KEYWORD: PRD_VER
HDU: PRIMARY KEYWORD: PRIDTYPE
HDU: PRIMARY KEYWORD: PWFSEET
HDU: PRIMARY KEYWORD: ROIW
HDU: PRIMARY KEYWORD: SCATFILE
HDU: PRIMARY KEYWORD: SDP_VER
HDU: PRIMARY KEYWORD: SEGMFILE
HDU: PRIMARY KEYWORD: SMGRDPAT
HDU: PRIMARY KEYWORD: SUBARRAY
HDU: PRIMARY KEYWORD: SUBCAT
HDU: PRIMARY KEYWORD: SUBPXPAT
HDU: PRIMARY KEYWORD: TARGTYPE
HDU: PRIMARY KEYWORD: TCATFILE
HDU: PRIMARY KEYWORD: TELESCOP
HDU: PRIMARY KEYWORD: TEMPLATE
HDU: PRIMARY KEYWORD: TIMESYS
HDU: PRIMARY KEYWORD: VISITSTA
HDU: SCI KEYWORD: SRCTYPE
HDU: SCI KEYWORD: STLARITY
HDU: SCI KEYWORD: VPARITY
|
4fb9dba
to
4a0cf0a
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.
👏
bb70eef
to
3420dc9
Compare
Regression test run started for okifying: https://github.com/spacetelescope/RegressionTests/actions/runs/11916164763 |
This PR is mostly title changes to match FITS keyword titles listed in the keyword dictionary. In addition to the title changes a few enums were updated. Most are
S_XX
keywords adding a[COMPLETE, SKIPPED]
enum to match the keyword dictionary. I will add inline notes for the others.See https://grit.stsci.edu/OED_DSB/jwstkd/-/merge_requests/124 for the corresponding keyword dictionary PR. In some circumstances I chose to update the title in the keyword dictionary (to fix a typo, move the unit to the front, or when the datamodel title otherwise seemed more informative).
Regression tests at https://github.com/spacetelescope/RegressionTests/actions/runs/11632952166
with a branch of jwst that ignore comment differences as the changes in this PR will introduce a LOT
spacetelescope/jwst#8940
showed only 1 unrelated failure (which also occurs on jwst main: https://github.com/spacetelescope/RegressionTests/actions/runs/11635302796/job/32404503314#step:28:101)
This does not address all of the keyword differences. Some unaddressed ones are:
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