Skip to content

Commit b9ad319

Browse files
committed
normalize workflow-id
1 parent afed7eb commit b9ad319

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

deep_code/tools/publish.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def __init__(
172172
self.workflow_title = self.workflow_config.get("properties", {}).get(
173173
"title"
174174
)
175-
self.workflow_id = self.workflow_config.get("workflow_id")
175+
self.workflow_id = self._normalize_name(
176+
self.workflow_config.get("workflow_id")
177+
)
176178

177179
def _read_config_files(self) -> None:
178180
if self.dataset_config_path:
@@ -269,6 +271,7 @@ def publish_dataset(
269271
license_type = self.dataset_config.get("license_type")
270272
visualisation_link = self.dataset_config.get("visualisation_link")
271273
osc_project_title = self.dataset_config.get("osc_project_title")
274+
description = self.dataset_config.get("description")
272275

273276
if not dataset_id or not self.collection_id:
274277
raise ValueError("Dataset ID or Collection ID missing in the config.")
@@ -303,6 +306,7 @@ def publish_dataset(
303306
cf_params=cf_params,
304307
visualisation_link=visualisation_link,
305308
osc_project_title=osc_project_title,
309+
description=description,
306310
)
307311
# Store so publish() can reuse it for zarr STAC catalog generation
308312
self._last_generator = generator

0 commit comments

Comments
 (0)