Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Jan 22, 2024
1 parent 07f919a commit d6d3c80
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/openscm_runner/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@
def _get_output_dict( # pylint: disable=too-many-locals,too-many-branches
res, outputs_to_get
):
"""
Get output dictionary
Returns a dictionary of outputs which can be used with our regression testing.
Parameters
----------
res
Results from which to extract outputs
outputs_to_get
Outputs to get from the results
Returns
-------
Dictionary of results which can be understood by our regression tests
"""
output = {}
for climate_model, checks in outputs_to_get.items():
res_cm = res.filter(climate_model=climate_model)
Expand Down

0 comments on commit d6d3c80

Please sign in to comment.