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

RCAL-950: CRDS Keywords & Misc #423

Merged
merged 7 commits into from
Nov 13, 2024

Conversation

PaulHuwe
Copy link
Collaborator

Resolves RCAL-950

Closes #1507

This PR addresses updates for Build 17 release of the RAD software package.

Tasks

  • Update or add relevant roman_datamodels tests.
  • Update relevant docstrings and / or docs/ page.
  • Does this PR change any API used downstream? (If not, label with no-changelog-entry-needed.)
News fragment change types:
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.bugfix.rst: fixes an issue
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.removal.rst: deprecation or removal of public API
  • changes/<PR#>.misc.rst: infrastructure or miscellaneous change

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (087a60d) to head (40c20e6).
Report is 69 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #423      +/-   ##
==========================================
- Coverage   97.56%   97.47%   -0.10%     
==========================================
  Files          30       36       +6     
  Lines        2788     3439     +651     
==========================================
+ Hits         2720     3352     +632     
- Misses         68       87      +19     

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

@PaulHuwe PaulHuwe marked this pull request as ready for review November 12, 2024 22:54
@PaulHuwe PaulHuwe requested a review from a team as a code owner November 12, 2024 22:54
Copy link
Collaborator

@mairanteodoro mairanteodoro left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@@ -394,7 +394,7 @@ def mk_ref_file(**kwargs):
ref_file["inverse_linearity"] = kwargs.get("inverse_linearity", "N/A")
ref_file["photom"] = kwargs.get("photom", "N/A")
ref_file["area"] = kwargs.get("area", "N/A")
ref_file["crds"] = kwargs.get("crds", {"sw_version": "12.3.1", "context_used": "roman_0815.pmap"})
ref_file["crds"] = kwargs.get("crds", {"version": "12.3.1", "context": "roman_0815.pmap"})
Copy link
Collaborator

@mairanteodoro mairanteodoro Nov 13, 2024

Choose a reason for hiding this comment

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

Just out of curiosity, is there a way to fetch version and context from CRDS so that we don't have to hardcode it here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I just found out about stpipe.crds_client's get_svn_version() and get_context_used(). Is there a reason for not using them?

@@ -234,7 +234,7 @@ def mk_distortion(*, filepath=None, **kwargs):
return save_node(distortionref, filepath=filepath)


def mk_epsf(*, shape=(3, 9, 361, 361), filepath=None, **kwargs):
def mk_epsf(*, shape=(3, 6, 9, 361, 361), filepath=None, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should set a global var with the default shape to prevent repetition?

Copy link
Collaborator

@schlafly schlafly left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. @mairanteodoro , in the maker utils, we don't necessarily have CRDS installed, etc., so we don't want to use that here. But definitely in romancal.

Copy link
Collaborator

@mairanteodoro mairanteodoro left a comment

Choose a reason for hiding this comment

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

Looks good.

@PaulHuwe PaulHuwe merged commit 6689b55 into spacetelescope:main Nov 13, 2024
17 of 18 checks passed
@PaulHuwe PaulHuwe deleted the RCAL-950_CRDSKeywordsMisc branch November 13, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants