Skip to content

Commit

Permalink
Disable optimization for polars in adaptive localization test
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Nov 21, 2024
1 parent 0ff0c0b commit 016b43d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ert/ui_tests/cli/test_field_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ def test_field_param_update_using_heat_equation_zero_var_params_and_adaptive_loc
- Numerical warnings from division by zero
- Cross-correlation matrix instabilities
"""

os.environ["POLARS_MAX_THREADS"] = "1"
config = ErtConfig.from_file("config.ert")
with open_storage(config.ens_path, mode="w") as storage:
experiment = storage.get_experiment_by_name("es-mda")
Expand Down Expand Up @@ -333,6 +335,7 @@ def test_field_param_update_using_heat_equation_zero_var_params_and_adaptive_loc
)
# Check that generalized variance is reduced by update step.
assert np.trace(prior_covariance) > np.trace(posterior_covariance)
del os.environ["POLARS_MAX_THREADS"]


@pytest.mark.usefixtures("copy_heat_equation")
Expand Down

0 comments on commit 016b43d

Please sign in to comment.