Closed fcooper8472 closed 5 years ago
@willu47 question about the proposed get_results
behaviour:
Let's say I supply models=['water_supply']
, but water_supply
is run in a number of different model runs... are you thinking that get_results
only gets results for a specific model run?
We need both cases - we should add model run
as a result dimension above. However... it does not make sense to compare results from model runs that contain a different system-of-systems, where a model can exist in multiple system-of-systems.
Closed by #367
Goal
Improve the ability to query results from model runs within smif by developing a suitable API.
Problem
smif.data_layer.store
such asread_results
,write_results
,available_results
Core functionality
Find out for which model runs results are available #351
Check that the results for a model run are complete, and if not, which are missing #352
Programmatically query the available model results (#359) across various levels in the hierarchy of
output_name
<- these are defined in an output's Spec, also in configUsers should be able to fix one or more of the above levels and receive a multi-dimensional array of data that represents the unfixed data. For example given:
models
Something like:
get_results(timestep=[2010], models=['water_supply'])
should return results for both outputs (cost
andenergy_demand
) for the year 2010 for the single iteration0
get_results(models['water_supply'], outputs=['cost'])
should return a timeseries of costs for the outputcost
for the single iteration0