Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Aug 6, 2024
1 parent 89bffdb commit dd3a3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ndfilters/_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def generic_filter(
f"{size=} should have the same number of elements as {axis=}."
)

if mode != "mirror":
if mode != "mirror": # pragma: nocover
raise ValueError(f"Only mode='reflected' is supported, got {mode=}")

axis_numba = ~np.arange(len(axis))[::-1]
Expand All @@ -109,7 +109,7 @@ def generic_filter(
_generic_filter_nd = _generic_filter_2d
elif len(axis) == 3:
_generic_filter_nd = _generic_filter_3d
else:
else: # pragma: nocover
raise ValueError(f"Only 1-3 axes supported, got {axis=}.")

result = _generic_filter_nd(
Expand Down

0 comments on commit dd3a3b2

Please sign in to comment.