Skip to content

Commit

Permalink
add change log
Browse files Browse the repository at this point in the history
  • Loading branch information
nden committed Mar 8, 2024
1 parent d953ae0 commit 2b779be
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- Make datamodels follow the same subscription pattern as the ``stnode`` based
objects. [#322]

- Add attributes under the ``basic`` schema to ``WfiMosaic.meta``. [#328]

0.19.0 (2024-02-09)
===================

Expand Down
1 change: 0 additions & 1 deletion src/roman_datamodels/maker_utils/_common_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ def mk_mosaic_meta(**kwargs):
meta = mk_basic_meta(**kwargs)
meta['basic'] = mk_mosaic_basic(**kwargs.get("basic", {}))
meta["asn"] = mk_mosaic_associations(**kwargs.get("asn", {}))
# meta["basic"] = mk_mosaic_basic(**kwargs.get("basic", {}))
meta["cal_step"] = mk_cal_step(**kwargs.get("cal_step", {}))
meta["coordinates"] = mk_coordinates(**kwargs.get("coordinates", {}))
meta["individual_image_meta"] = mk_individual_image_meta(**kwargs.get("individual_image_meta", {}))
Expand Down
2 changes: 0 additions & 2 deletions src/roman_datamodels/maker_utils/_datamodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ def mk_level3_mosaic(*, shape=(4088, 4088), n_images=2, filepath=None, **kwargs)

wfi_mosaic = stnode.WfiMosaic()
wfi_mosaic["meta"] = mk_mosaic_meta(**kwargs.get("meta", {}))
#wfi_mosaic["meta"]['basic'] = mk_mosaic_basic(**kwargs.get("meta", {}))

wfi_mosaic["data"] = kwargs.get("data", u.Quantity(np.zeros(shape, dtype=np.float32), u.MJy / u.sr, dtype=np.float32))
wfi_mosaic["err"] = kwargs.get("err", u.Quantity(np.zeros(shape, dtype=np.float32), u.MJy / u.sr, dtype=np.float32))
wfi_mosaic["context"] = kwargs.get("context", np.zeros((n_images,) + shape, dtype=np.uint32))
Expand Down

0 comments on commit 2b779be

Please sign in to comment.