Skip to content

Commit fbd1d7d

Browse files
authored
Use our sum (#18)
1 parent f3f683c commit fbd1d7d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/test_stats.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,5 @@ def test_sum_benchmark(
9696
except NotImplementedError:
9797
pytest.skip("random_array not implemented for dtype")
9898

99-
def sum(arr: Array[Any], axis: int | None) -> Array[Any]: # noqa: A001
100-
if hasattr(arr, "sum"):
101-
return arr.sum(axis=axis)
102-
return np.sum(arr, axis=axis) # type: ignore[arg-type]
103-
104-
sum(arr, axis=axis) # warmup: numba compile
105-
benchmark(sum, arr, axis=axis)
99+
stats.sum(arr, axis=axis) # type: ignore[arg-type] # warmup: numba compile
100+
benchmark(stats.sum, arr, axis=axis)

0 commit comments

Comments
 (0)