Skip to content
Snippets Groups Projects
Commit afa2d21e authored by Rob Moss's avatar Rob Moss
Browse files

Save scenario-specific metadata in the output file

This allows scenario files to define metadata tables, whose contents
will be included in the simulation output files.
parent f19ed9be
Branches
Tags
No related merge requests found
Pipeline #6800 passed
...@@ -428,6 +428,11 @@ def make_params_fn(scen_data, settings: _Settings, ...@@ -428,6 +428,11 @@ def make_params_fn(scen_data, settings: _Settings,
'name': scen_name, 'name': scen_name,
} }
# Save scenario-specific metadata, if any.
scen_meta = scen_data.get('metadata', {})
if scen_meta:
params['scenario']['metadata'] = scen_meta
return params return params
return params_fn return params_fn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment