Skip to content

Commit

Permalink
Updated associations block.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHuwe committed Jan 31, 2024
1 parent 827a762 commit 3a8bec0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/roman_datamodels/maker_utils/_common_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,17 +458,19 @@ def mk_mosaic_meta(**kwargs):

def mk_mosaic_associations(**kwargs):
"""
Create a dummy metadata dictionary with valid values for mosaic associations attributes.
Create a dummy mosaic associations instance with valid values for
mosaic associations attributes. Utilized by the model maker utilities.
Returns
-------
dict (defined by the wfi_mosaic-1.0.0 schema)
roman_datamodels.stnode.MosaicAssociations
"""
meta = {}
meta["pool_name"] = kwargs.get("pool_name", NOSTR)
meta["table_name"] = kwargs.get("pool_name", NOSTR)

return meta
mosass = stnode.MosaicAssociations()
mosass["pool_name"] = kwargs.get("pool_name", NOSTR)
mosass["table_name"] = kwargs.get("table_name", NOSTR)

return mosass


def mk_guidewindow_meta(**kwargs):
Expand Down

0 comments on commit 3a8bec0

Please sign in to comment.