File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
src/anemoi/datasets/create Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -412,7 +412,24 @@ def _run(self):
412
412
metadata .update (self .main_config .get ("add_metadata" , {}))
413
413
414
414
metadata ["_create_yaml_config" ] = self .main_config .get_serialisable_dict ()
415
- metadata ["recipe" ] = sanitise (self .main_config .get_serialisable_dict ())
415
+
416
+ recipe = sanitise (self .main_config .get_serialisable_dict ())
417
+
418
+ # Remove stuff added by prepml
419
+ for k in [
420
+ "build_dataset" ,
421
+ "config_format_version" ,
422
+ "config_path" ,
423
+ "dataset_status" ,
424
+ "ecflow" ,
425
+ "metadata" ,
426
+ "platform" ,
427
+ "reading_chunks" ,
428
+ "upload" ,
429
+ ]:
430
+ recipe .pop (k , None )
431
+
432
+ metadata ["recipe" ] = recipe
416
433
417
434
metadata ["description" ] = self .main_config .description
418
435
metadata ["licence" ] = self .main_config ["licence" ]
You can’t perform that action at this time.
0 commit comments