Skip to content

Commit 69c40f9

Browse files
committed
wip(catalog): better use of title and description keys
1 parent 098fb6b commit 69c40f9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/esm_runscripts/catalog.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ def create_intake_esm_catalog(config):
8383
catalog["id"] = hashlib.sha256(
8484
f"{config['general']['expid']}_{datetime.datetime.now()}_{getpass.getuser()}".encode()
8585
).hexdigest()
86-
catalog[
87-
"description"
88-
] = f"Intake-ESM Catalog for Experiment {config['general']['expid']}"
89-
catalog["title"] = None
86+
catalog["description"] = config["general"].get("description")
87+
catalog["title"] = f"Intake-ESM Catalog for Experiment {config['general']['expid']}"
9088
catalog["last_updated"] = str(datetime.datetime.now())
9189
catalog_dict = catalog["catalog_dict"] = []
9290
# Each entry in catalog_dict should correspond to the schema provided

0 commit comments

Comments
 (0)