From 3bda3b30e3a7bc7fd084bf1c4ee6dc8de7fe3328 Mon Sep 17 00:00:00 2001 From: Anna Kvashchuk Date: Fri, 13 Oct 2023 09:27:39 +0200 Subject: [PATCH] Fix formatting --- tests/unit_tests/analysis/test_adaptive_localization.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/unit_tests/analysis/test_adaptive_localization.py b/tests/unit_tests/analysis/test_adaptive_localization.py index cea10372ee2..cd5932fbbfe 100644 --- a/tests/unit_tests/analysis/test_adaptive_localization.py +++ b/tests/unit_tests/analysis/test_adaptive_localization.py @@ -13,8 +13,8 @@ def run_cli_ES_with_case(poly_config): config_name = poly_config.split(".")[0] - prior_sample_name = "prior_sample"+"_"+config_name - posterior_sample_name = "posterior_sample"+"_"+config_name + prior_sample_name = "prior_sample" + "_" + config_name + posterior_sample_name = "posterior_sample" + "_" + config_name parser = ArgumentParser(prog="test_main") parsed = ert_parser( parser, @@ -33,7 +33,6 @@ def run_cli_ES_with_case(poly_config): ) run_cli(parsed) storage_path = ErtConfig.from_file(poly_config).ens_path - #facade = LibresFacade.from_config_file(ert_config) with open_storage(storage_path) as storage: prior_ensemble = storage.get_ensemble_by_name(prior_sample_name) prior_sample = prior_ensemble.load_parameters("COEFFS") @@ -69,7 +68,7 @@ def test_that_adaptive_localization_with_cutoff_1_equals_ensemble_prior(copy_cas @pytest.mark.integration_test def test_that_adaptive_localization_with_cutoff_0_equals_ESupdate(copy_case): """ - Note that "RANDOM_SEED" in poly_loc_0.ert and poly_no_loc.ert needs to be the same to obtain + Note that "RANDOM_SEED" in poly_loc_0.ert and poly_no_loc.ert needs to be the same to obtain the same sample from the prior. """ copy_case("poly_example") @@ -99,4 +98,3 @@ def test_that_adaptive_localization_with_cutoff_0_equals_ESupdate(copy_case): # Check posterior sample without adaptive localization and with cut-off 0 are equal assert np.array_equal(posterior_sample_loc0, posterior_sample_noloc) -