From 6aca9334b7e17a36fd3a62d56fd407b5146857e8 Mon Sep 17 00:00:00 2001 From: Feda Curic Date: Tue, 3 Jan 2023 11:54:33 +0100 Subject: [PATCH] Increase ensemble size in test to avoid flakyness --- src/ert/gui/ertwidgets/analysismodulevariablespanel.py | 3 ++- tests/unit_tests/analysis/test_es_update.py | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ert/gui/ertwidgets/analysismodulevariablespanel.py b/src/ert/gui/ertwidgets/analysismodulevariablespanel.py index ba8152329b9..87333cb6dc9 100644 --- a/src/ert/gui/ertwidgets/analysismodulevariablespanel.py +++ b/src/ert/gui/ertwidgets/analysismodulevariablespanel.py @@ -1,4 +1,5 @@ from functools import partial + from qtpy.QtWidgets import ( QCheckBox, QDoubleSpinBox, @@ -10,11 +11,11 @@ QWidget, ) +from ert._c_wrappers.analysis import correlation_threshold from ert.gui.ertwidgets.models.analysismodulevariablesmodel import ( AnalysisModuleVariablesModel, ) from ert.libres_facade import LibresFacade -from ert._c_wrappers.analysis import correlation_threshold class AnalysisModuleVariablesPanel(QWidget): diff --git a/tests/unit_tests/analysis/test_es_update.py b/tests/unit_tests/analysis/test_es_update.py index 8f9ad8b8e0a..ff3aa5bee4f 100644 --- a/tests/unit_tests/analysis/test_es_update.py +++ b/tests/unit_tests/analysis/test_es_update.py @@ -5,19 +5,18 @@ import numpy as np rng = np.random.default_rng() -from scipy.linalg import toeplitz - import pandas as pd import pytest from iterative_ensemble_smoother import IterativeEnsembleSmoother +from scipy.linalg import toeplitz from ert import LibresFacade from ert.__main__ import ert_parser from ert._c_wrappers.enkf import EnKFMain, EnkfNode, NodeId, ResConfig, RunContext from ert.analysis import ErtAnalysisError, ESUpdate from ert.analysis._es_update import ( - _create_temporary_parameter_storage, _correlated_parameter_response_pairs, + _create_temporary_parameter_storage, ) from ert.cli import ENSEMBLE_EXPERIMENT_MODE, ENSEMBLE_SMOOTHER_MODE from ert.cli.main import run_cli @@ -496,7 +495,7 @@ def test_update_multiple_param(copy_case): def test_correlated_parameter_response_pair(): p = 4 m = 2 - N = 1000 + N = 2000 rho = 0.9 # Correlation matrix or AR(1) model R = toeplitz([rho**i for i in range(p + m)])