Skip to content

Commit

Permalink
Fix for Zarr v3
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Aug 27, 2024
1 parent c090fe8 commit 6a56586
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cubed/tests/primitive/test_blockwise.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import pytest
import zarr
from numpy.testing import assert_array_equal

from cubed.backend_array_api import namespace as nxp
Expand Down Expand Up @@ -279,10 +278,10 @@ def block_function(out_key):

input = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])

res1 = zarr.open_array(target_store1)
res1 = open_backend_array(target_store1, mode="r")
assert_array_equal(res1[:], np.sqrt(input))

res2 = zarr.open_array(target_store2)
res2 = open_backend_array(target_store2, mode="r")
assert_array_equal(res2[:], -np.sqrt(input))


Expand Down

0 comments on commit 6a56586

Please sign in to comment.