Skip to content

Commit 827a762

Browse files
authored
Merge pull request #4 from stscieisenhamer/rcal-704-l3resample
setup default for mosaic associations
2 parents ee795ae + d3147d5 commit 827a762

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/roman_datamodels/maker_utils/_common_meta.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ def mk_mosaic_meta(**kwargs):
445445
"""
446446

447447
meta = {}
448+
meta["asn"] = mk_mosaic_associations(**kwargs.get("asn", {}))
448449
meta["basic"] = mk_mosaic_basic(**kwargs.get("basic", {}))
449450
meta["cal_step"] = mk_cal_step(**kwargs.get("cal_step", {}))
450451
meta["individual_image_meta"] = mk_individual_image_meta(**kwargs.get("individual_image_meta", {}))
@@ -455,6 +456,21 @@ def mk_mosaic_meta(**kwargs):
455456
return meta
456457

457458

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+
458474
def mk_guidewindow_meta(**kwargs):
459475
"""
460476
Create a dummy common metadata dictionary with valid values for attributes and add

0 commit comments

Comments
 (0)