Skip to content

Commit

Permalink
try decimal-tolerant array comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Nov 21, 2024
1 parent 947b7e2 commit 9cf1e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_spot_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import hypothesis as hyp
import numpy as np
import numpy.testing as np_test
import pandas as pd
import pytest
from helpers import load_image_file
Expand Down Expand Up @@ -64,7 +65,7 @@ def test_spot_table_columns__are_always_as_expected(
def test_simple_intensity_detector_result_always_contains_original_image(input_image):
detect, threshold, pixel_expansion = BASE_INTENSITY_BUNDLE
result = detect(input_image, spot_threshold=threshold, expand_px=pixel_expansion)
assert np.array_equal(result.image, input_image)
np_test.assert_allclose(result.image, input_image)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 9cf1e9a

Please sign in to comment.