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-3329: Add GSC_VER to JWST core schema #190

Merged
merged 2 commits into from
Aug 8, 2023
Merged

JP-3329: Add GSC_VER to JWST core schema #190

merged 2 commits into from
Aug 8, 2023

Conversation

hbushouse
Copy link
Collaborator

@hbushouse hbushouse commented Aug 8, 2023

Resolves JP-3329

Closes spacetelescope/jwst#7791

This PR adds the new "GSC_VER" keyword to the JWST core schema, to keep in synch with the changes made to the keyword dictionary in JWSTKD-534. In addition to adding the definition of GSC_VER, it also makes minor updates to the comment/title field of several other xxx_VER keywords, again in keeping with changes made in the dictionary.

Checklist

  • added entry in CHANGES.rst (either in Bug Fixes or Changes to API)
  • updated relevant tests
  • updated relevant documentation
  • updated relevant milestone(s)
  • added relevant label(s)

@hbushouse hbushouse requested a review from a team as a code owner August 8, 2023 13:51
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (078bd1c) 64.01% compared to head (5ac025d) 64.01%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #190   +/-   ##
=======================================
  Coverage   64.01%   64.01%           
=======================================
  Files         101      101           
  Lines        5558     5558           
=======================================
  Hits         3558     3558           
  Misses       2000     2000           

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

@hbushouse hbushouse requested a review from tapastro August 8, 2023 13:59
@braingram
Copy link
Collaborator

Changes look good to me. One question about the title changes. I think these get included in the header keywords as comments. For example:

TELESCOP= 'JWST    '           / Telescope used to acquire the data

Will the header changes cause fitsdiff failures for the regression tests?

Copy link
Collaborator

@tapastro tapastro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hbushouse
Copy link
Collaborator Author

Will the header changes cause fitsdiff failures for the regression tests?

Yes, definitely. I'm prepared to handle those.

@tapastro
Copy link
Collaborator

tapastro commented Aug 8, 2023

Changes look good to me. One question about the title changes. I think these get included in the header keywords as comments. For example:

TELESCOP= 'JWST    '           / Telescope used to acquire the data

Will the header changes cause fitsdiff failures for the regression tests?

Probably so - our fitsdiff ignores some keywords (like CAL_VER), but not all of these.

@braingram
Copy link
Collaborator

Probably so - our fitsdiff ignores some keywords (like CAL_VER), but not all of these.

Thanks!

Is it a terrible idea to try adding ignore_comments='*' (or something similar) to the fitsdiff_default_kwargs?

@hbushouse
Copy link
Collaborator Author

Probably so - our fitsdiff ignores some keywords (like CAL_VER), but not all of these.

Thanks!

Is it a terrible idea to try adding ignore_comments='*' (or something similar) to the fitsdiff_default_kwargs?

Perhaps not a terrible idea, at least for the regular nightly runs, but I like having the comparison turned on just for the purpose of verifying changes like these.

@hbushouse
Copy link
Collaborator Author

@hbushouse
Copy link
Collaborator Author

Confirmed that all (350!) regtest failures are due to the expected header changes.

@hbushouse hbushouse merged commit f1268d8 into master Aug 8, 2023
17 checks passed
@hbushouse hbushouse deleted the jp-3329 branch August 8, 2023 18:45
@hbushouse hbushouse added this to the 1.7.2 milestone Aug 8, 2023
braingram added a commit to braingram/stdatamodels that referenced this pull request Aug 9, 2023
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.

New FITS keyword GSC_VER needs to be added to the core schema
3 participants