Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 49c7d2c commit 748edc6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/unit/bm3dornl/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def test_is_within_threshold():
# Test case 5: Slightly different patches, very small threshold
threshold = 0.1
result = is_within_threshold(ref_patch, cmp_patch_close, threshold)
assert not result, "Failed: Slightly different patches should not be within very small distance of 0.1"
assert not result, (
"Failed: Slightly different patches should not be within very small distance of 0.1"
)


def test_estimate_background_intensity():
Expand All @@ -62,9 +64,9 @@ def test_estimate_background_intensity():
result = estimate_background_intensity(tomostack, quantile=0.05)

# Assert the result is as expected
assert np.isclose(
result, expected_intensity
), f"Expected {expected_intensity}, but got {result}"
assert np.isclose(result, expected_intensity), (
f"Expected {expected_intensity}, but got {result}"
)


def test_upscale_basic():
Expand Down

0 comments on commit 748edc6

Please sign in to comment.