mathworks / mathworks/MATLAB-support-for-Zarr-files

Improvement to error message (Error opening "zarr" driver) for reading Zarr v3 files in MATLAB

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
MATLAB
Stars
19
Forks
3
PR merge metrics
No merged PRs in 30d

Description

If I read a Zarr v3 array (created via Python) in MATLAB, then I get "Python Error: ValueError: NOT_FOUND: Error opening "zarr" driver" error. Given only v2 arrays are supported, so it would be nice to throw some helpful error here.

import zarr
import numpy as np

store = zarr.storage.LocalStore('my_zarr_group')
group = zarr.group(store=store, overwrite=True)
group.attrs['group_description'] = 'This is a sample Zarr group'
array = group.create_dataset('my_array', shape=(100, 100), dtype=np.float32, chunks=(10, 10))
array[:] = np.random.rand(100, 100)

After you have created the array using the above code, call zarrread function on this array in MATLAB.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the zarrread entry point and trace how unsupported Zarr versions reach the reported Python error. Reproduce the issue with the Python example, then make completion mean that Zarr v3 input produces a helpful unsupported-version message while existing Zarr v2 reading remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.