Skip to content

Commit

Permalink
Try with np.allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
kvashchuka committed Oct 13, 2023
1 parent ad3ecb8 commit 11ddac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit_tests/analysis/test_adaptive_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ def test_that_adaptive_localization_with_cutoff_0_equals_ESupdate(copy_case):
prior_sample_noloc, posterior_sample_noloc = run_cli_ES_with_case("poly_no_loc.ert")

Check failure on line 97 in tests/unit_tests/analysis/test_adaptive_localization.py

View workflow job for this annotation

GitHub Actions / annotate-python-linting

line too long (88 > 79 characters)

# Check posterior sample without adaptive localization and with cut-off 0 are equal

Check failure on line 99 in tests/unit_tests/analysis/test_adaptive_localization.py

View workflow job for this annotation

GitHub Actions / annotate-python-linting

line too long (87 > 79 characters)
assert np.array_equal(posterior_sample_loc0, posterior_sample_noloc)
assert np.allclose(posterior_sample_loc0, posterior_sample_noloc, rtol=1e-08, atol=1e-08)

Check failure on line 100 in tests/unit_tests/analysis/test_adaptive_localization.py

View workflow job for this annotation

GitHub Actions / annotate-python-linting

line too long (93 > 79 characters)

0 comments on commit 11ddac9

Please sign in to comment.