File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/roman_datamodels/maker_utils Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -445,6 +445,7 @@ def mk_mosaic_meta(**kwargs):
445
445
"""
446
446
447
447
meta = {}
448
+ meta ["asn" ] = mk_mosaic_associations (** kwargs .get ("asn" , {}))
448
449
meta ["basic" ] = mk_mosaic_basic (** kwargs .get ("basic" , {}))
449
450
meta ["cal_step" ] = mk_cal_step (** kwargs .get ("cal_step" , {}))
450
451
meta ["individual_image_meta" ] = mk_individual_image_meta (** kwargs .get ("individual_image_meta" , {}))
@@ -455,6 +456,21 @@ def mk_mosaic_meta(**kwargs):
455
456
return meta
456
457
457
458
459
+ def mk_mosaic_associations (** kwargs ):
460
+ """
461
+ Create a dummy metadata dictionary with valid values for mosaic associations attributes.
462
+
463
+ Returns
464
+ -------
465
+ dict (defined by the wfi_mosaic-1.0.0 schema)
466
+ """
467
+ meta = {}
468
+ meta ["pool_name" ] = kwargs .get ("pool_name" , NOSTR )
469
+ meta ["table_name" ] = kwargs .get ("pool_name" , NOSTR )
470
+
471
+ return meta
472
+
473
+
458
474
def mk_guidewindow_meta (** kwargs ):
459
475
"""
460
476
Create a dummy common metadata dictionary with valid values for attributes and add
You can’t perform that action at this time.
0 commit comments