Skip to content

Commit

Permalink
Fix dtype in test for mean
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Nov 23, 2023
1 parent 05c3dfe commit 7718ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cubed/tests/test_gufunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def stats(x):
r = np.random.normal(size=(10, 20, 30))
a = cubed.from_array(r, chunks=(5, 5, 30), spec=spec)
actual = apply_gufunc(stats, "(i)->()", a, output_dtypes="f", vectorize=vectorize)
expected = np.mean(r, axis=-1)
expected = np.mean(r, axis=-1, dtype=np.float32)

assert actual.compute().shape == expected.shape
assert_allclose(actual.compute(), expected)
Expand Down

0 comments on commit 7718ca4

Please sign in to comment.