Skip to content

Commit

Permalink
Select for summary key in local_ensemble
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Oct 23, 2024
1 parent 81463d6 commit ce1203e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ert/dark_storage/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,14 @@ def data_for_key(

if response_type == "summary":
summary_data = ensemble.load_responses(
"summary",
tuple(ensemble.get_realization_list_with_responses("summary")),
response_key,
tuple(ensemble.get_realization_list_with_responses(response_key)),
)
if summary_data.is_empty():
return pd.DataFrame()

df = (
summary_data.filter(polars.col("response_key").eq(key))
.rename({"time": "Date", "realization": "Realization"})
summary_data.rename({"time": "Date", "realization": "Realization"})
.drop("response_key")
.to_pandas()
)
Expand Down

0 comments on commit ce1203e

Please sign in to comment.