Skip to content

Commit 3a8bec0

Browse files
committed
Updated associations block.
1 parent 827a762 commit 3a8bec0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/roman_datamodels/maker_utils/_common_meta.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -458,17 +458,19 @@ def mk_mosaic_meta(**kwargs):
458458

459459
def mk_mosaic_associations(**kwargs):
460460
"""
461-
Create a dummy metadata dictionary with valid values for mosaic associations attributes.
461+
Create a dummy mosaic associations instance with valid values for
462+
mosaic associations attributes. Utilized by the model maker utilities.
462463
463464
Returns
464465
-------
465-
dict (defined by the wfi_mosaic-1.0.0 schema)
466+
roman_datamodels.stnode.MosaicAssociations
466467
"""
467-
meta = {}
468-
meta["pool_name"] = kwargs.get("pool_name", NOSTR)
469-
meta["table_name"] = kwargs.get("pool_name", NOSTR)
470468

471-
return meta
469+
mosass = stnode.MosaicAssociations()
470+
mosass["pool_name"] = kwargs.get("pool_name", NOSTR)
471+
mosass["table_name"] = kwargs.get("table_name", NOSTR)
472+
473+
return mosass
472474

473475

474476
def mk_guidewindow_meta(**kwargs):

0 commit comments

Comments
 (0)