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

Update maker_utils for new cal_step keys. #228

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
- Use ValidationError from asdf.exceptions instead of jsonschema. Increase minimum
asdf version to 2.15.0. [#234]

- Update ``maker_utils`` to support the new ``cal_step`` keys. [#228]

0.16.1 (2023-06-27)
===================

Expand Down
8 changes: 6 additions & 2 deletions src/roman_datamodels/maker_utils/_common_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,20 @@ def mk_cal_step(**kwargs):
roman_datamodels.stnode.CalStep
"""
calstep = stnode.CalStep()
calstep["flat_field"] = kwargs.get("flat_field", "INCOMPLETE")
calstep["dq_init"] = kwargs.get("dq_init", "INCOMPLETE")
calstep["assign_wcs"] = kwargs.get("assign_wcs", "INCOMPLETE")
calstep["dark"] = kwargs.get("dark", "INCOMPLETE")
calstep["dq_init"] = kwargs.get("dq_init", "INCOMPLETE")
calstep["flat_field"] = kwargs.get("flat_field", "INCOMPLETE")
calstep["jump"] = kwargs.get("jump", "INCOMPLETE")
calstep["linearity"] = kwargs.get("linearity", "INCOMPLETE")
calstep["photom"] = kwargs.get("photom", "INCOMPLETE")
calstep["source_detection"] = kwargs.get("source_detection", "INCOMPLETE")
calstep["outlier_detection"] = kwargs.get("outlier_detection", "INCOMPLETE")
calstep["ramp_fit"] = kwargs.get("ramp_fit", "INCOMPLETE")
calstep["refpix"] = kwargs.get("refpix", "INCOMPLETE")
calstep["saturation"] = kwargs.get("saturation", "INCOMPLETE")
calstep["skymatch"] = kwargs.get("skymatch", "INCOMPLETE")
calstep["tweakreg"] = kwargs.get("tweakreg", "INCOMPLETE")

return calstep

Expand Down