From 3a8bec097d0c29717954ab91b654258f7f3baef9 Mon Sep 17 00:00:00 2001 From: PaulHuwe Date: Wed, 31 Jan 2024 13:05:57 -0500 Subject: [PATCH] Updated associations block. --- src/roman_datamodels/maker_utils/_common_meta.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/roman_datamodels/maker_utils/_common_meta.py b/src/roman_datamodels/maker_utils/_common_meta.py index 0717b454..94555212 100644 --- a/src/roman_datamodels/maker_utils/_common_meta.py +++ b/src/roman_datamodels/maker_utils/_common_meta.py @@ -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):