Skip to content

Commit

Permalink
Use _to_parquet_transaction for saving scaling factors
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen committed Sep 27, 2024
1 parent d890118 commit 5aac172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ert/storage/local_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,9 @@ def load_cross_correlations(self) -> xr.Dataset:

@require_write
def save_observation_scaling_factors(self, dataset: polars.DataFrame) -> None:
dataset.write_parquet(self.mount_point / "observation_scaling_factors.parquet")
self._storage._to_parquet_transaction(
self.mount_point / "observation_scaling_factors.parquet", dataset
)

def load_observation_scaling_factors(
self,
Expand Down

0 comments on commit 5aac172

Please sign in to comment.