Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explorer dictionary support #222

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Explorer dictionary support #222

merged 2 commits into from
Sep 26, 2023

Conversation

adnejacobsen
Copy link
Contributor

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()

@adnejacobsen adnejacobsen linked an issue Sep 26, 2023 that may be closed by this pull request
Copy link
Contributor

@daniel-sol daniel-sol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adnejacobsen adnejacobsen merged commit a8ecea8 into main Sep 26, 2023
2 checks passed
@equinor-ruaj equinor-ruaj deleted the dictionary-support branch February 5, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add dictionary support to fmu.sumo.explorer
2 participants