Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/array-api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
zarr: ["<3", ">3"]

steps:
- name: Checkout Cubed
Expand All @@ -44,8 +45,10 @@ jobs:
run: |
pushd array-api-tests
pip install -e '../cubed[test]'
pip install -U 'zarr<3'
pip install -r requirements.txt # from Array API tests repo
- name: Install zarr${{ matrix.zarr }}
run: |
pip install -U 'zarr${{ matrix.zarr }}'
- name: Run Array API tests
env:
ARRAY_API_TESTS_MODULE: cubed.array_api
Expand Down
3 changes: 3 additions & 0 deletions cubed/storage/backends/zarr_python_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

from cubed.types import T_DType, T_RegularChunks, T_Shape, T_Store

# always write empty chunks to avoid a check for each chunk
zarr.config.set({"array.write_empty_chunks": True})


class ZarrV3ArrayGroup(dict):
def __init__(
Expand Down
Loading