Skip to content

Commit

Permalink
Drop nans along name dim for single obs datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Jun 14, 2024
1 parent c24268b commit b6977ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ert/storage/migration/to4.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def migrate(path: Path) -> None:
for obs_name, single_obs_ds in multi_obs_ds.groupby(
"obs_name", squeeze=True
):
single_obs_ds = single_obs_ds.dropna("name", how="all")
if response_type == "summary":
single_obs_ds.drop("obs_name").to_netcdf(
output_path / obs_name, engine="scipy"
Expand Down

0 comments on commit b6977ce

Please sign in to comment.