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

Save the scenario configuration in the output file

This saves a normalised version of the TOML configuration in each
simulation output file.
parent afa2d21e
Branches
Tags
No related merge requests found
Pipeline #6801 passed
......@@ -423,9 +423,11 @@ def make_params_fn(scen_data, settings: _Settings,
# Record the scenario ID and name in the parameters dictionary, so
# that it is recorded in each output file.
# Also record the (normalised) scenario configuration dictionary.
params['scenario'] = {
'id': scen_id,
'name': scen_name,
'config_str': toml.dumps(scen_data),
}
# Save scenario-specific metadata, if any.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment