Skip to content

Commit

Permalink
Use load_parameters instead of load_field
Browse files Browse the repository at this point in the history
This due to breaking change in ert
  • Loading branch information
dafeda authored and oyvindeide committed Jun 30, 2023
1 parent 8618dee commit c5b7322
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions semeio/workflows/ahm_analysis/ahmanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,12 @@ def _get_field_params(facade, field_parameters, target_ensemble):
"""
field_data = {}
for field_param in field_parameters:
field_data[field_param] = target_ensemble.load_field(
dataset = target_ensemble.load_parameters(
field_param, list(range(facade.get_ensemble_size()))
).T
)
field_data[field_param] = dataset.values.reshape(
facade.get_ensemble_size(), len(dataset.x) * len(dataset.y) * len(dataset.z)
)
return field_data


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
],
install_requires=[
"ecl",
"ert>=5.0.0",
"ert>=5.0.1",
"configsuite>=0.6",
"numpy",
"pandas>1.3.0",
Expand Down

0 comments on commit c5b7322

Please sign in to comment.