Skip to content

Commit

Permalink
Fixup test
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Jan 30, 2025
1 parent bcf4297 commit e5b445f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/ert/unit_tests/analysis/test_misfit_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ def test_that_get_nr_primary_components_is_according_to_theory():
threshold_3 = (s1**2 + 2 * s_remaining**2) / total

# Adding a bit to the thresholds because of numerical accuracy.
assert get_nr_primary_components(Y, threshold_1 + 0.01) == 1
assert get_nr_primary_components(Y, threshold_2 + 0.01) == 2
assert get_nr_primary_components(Y, threshold_3 + 0.01) == 3
assert get_nr_primary_components(Y, threshold_1 + 0.01) == 2
assert get_nr_primary_components(Y, threshold_2 + 0.01) == 3
assert get_nr_primary_components(Y, threshold_3 + 0.01) == 4

assert get_nr_primary_components(Y, 0) == 1


@pytest.mark.parametrize("nr_observations", [4, 5, 10])
Expand Down

0 comments on commit e5b445f

Please sign in to comment.