Skip to content

Commit

Permalink
fixup! Combine responses across realizations
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Nov 26, 2024
1 parent 8b31351 commit d3e8b2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ert/storage/local_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,14 @@ def load_responses(self, key: str, realizations: Tuple[int]) -> polars.DataFrame
combined_df_path = self.mount_point / f"{response_type}.parquet"
if combined_df_path.exists():
combined_df = polars.read_parquet(combined_df_path)
return combined_df.filter(polars.col("realization").is_in(realizations))
combined_df = combined_df.filter(
polars.col("realization").is_in(realizations)
)

if select_key:
combined_df = combined_df.filter(polars.col("response_key") == key)

return combined_df

loaded = []
for realization in realizations:
Expand Down

0 comments on commit d3e8b2f

Please sign in to comment.