Skip to content

Commit

Permalink
Commitin
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeda committed Aug 21, 2024
1 parent 0d94dee commit 324e6a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/ert/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ def get_ert_parser(parser: Optional[ArgumentParser] = None) -> ArgumentParser:
"then only realizations 0,1,2,3,...,9 will be used to perform experiments "
"while realizations 10,11, 12,...,49 will be excluded",
)
ensemble_smoother_parser.add_argument(
"--experiment-name",
type=str,
default="es",
help="Name of the experiment",
)

# iterative_ensemble_smoother_parser
iterative_ensemble_smoother_description = (
Expand Down
7 changes: 5 additions & 2 deletions tests/integration_tests/analysis/test_es_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,15 @@ def test_that_posterior_has_lower_variance_than_prior():
"--realizations",
"1-50",
"poly.ert",
"--experiment-name",
"es-test",
)
facade = LibresFacade.from_config_file("poly.ert")
with open_storage(facade.enspath) as storage:
prior_ensemble = storage.get_ensemble_by_name("iter-0")
experiment = storage.get_experiment_by_name("es-test")
prior_ensemble = experiment.get_ensemble_by_name("iter-0")
df_default = prior_ensemble.load_all_gen_kw_data()
posterior_ensemble = storage.get_ensemble_by_name("iter-1")
posterior_ensemble = experiment.get_ensemble_by_name("iter-1")
df_target = posterior_ensemble.load_all_gen_kw_data()

# The std for the ensemble should decrease
Expand Down

0 comments on commit 324e6a0

Please sign in to comment.