Skip to content

Commit

Permalink
Return update snapshot from facade
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Nov 21, 2023
1 parent 6a3e6a0 commit a3b4d81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ert/libres_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def smoother_update(
global_std_scaling: float = 1.0,
rng: Optional[np.random.Generator] = None,
misfit_process: bool = False,
) -> None:
) -> SmootherSnapshot:
if rng is None:
rng = np.random.default_rng()
analysis_config = UpdateSettings(
Expand All @@ -82,7 +82,7 @@ def smoother_update(
misfit_preprocess=misfit_process,
min_required_realizations=self.config.analysis_config.minimum_required_realizations,
)
self.update_snapshots[run_id] = smoother_update(
update_snapshot = smoother_update(
prior_storage,
posterior_storage,
run_id,
Expand All @@ -94,6 +94,8 @@ def smoother_update(
global_std_scaling,
log_path=self.config.analysis_config.log_path,
)
self.update_snapshots[run_id] = update_snapshot
return update_snapshot

def set_log_path(self, output_path: Union[Path, str]) -> None:
self.config.analysis_config.log_path = Path(output_path)
Expand Down

0 comments on commit a3b4d81

Please sign in to comment.