Skip to content

Commit

Permalink
Update maker_utils for new cal_step keys. (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Jul 10, 2023
1 parent ac6623e commit 36e98e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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

0 comments on commit 36e98e3

Please sign in to comment.