equinor / fmu-sumo

Interaction with Sumo in the FMU context
https://fmu-sumo.readthedocs.io/en/latest/
Apache License 2.0
0 stars 6 forks source link

Explorer dictionary support #222

Closed adnejacobsen closed 9 months ago

adnejacobsen commented 9 months ago

Add support for retrieving files with class:dictionary.

Examples:

Get parameters file for a given realization

dicts = my_case.dictionaries.filter(
    name="parameters",
    iteration="iter-0",
    realization=0
)

params = dicts[0]

Get aggregated parameters

dicts = my_case.dictionaries.filter(
    name="parameters",
    iteration="iter-4", 
    aggregation="collection",
)

param_names = dicts.tagnames

dicts = dicts.filter(tagname=param_names[0])
params = dicts[0]

Get the dict object

params.parse()