Skip to content

Improvement to error message for writing attributes to a Zarr group in MATLAB #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jm9176 opened this issue Apr 8, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jm9176
Copy link
Member

jm9176 commented Apr 8, 2025

Writing attribute to a group throws "Not a valid Zarr array or group" error, even though the group is valid and exists. So, maybe the error message can be improved?

>> zarrwriteatt('myFile/','attr1',10)
Error using zarrinfo (line 36)
Not a valid Zarr array or group

Error in zarrwriteatt (line 21)
info = zarrinfo(filepath);
       ^^^^^^^^^^^^^^^^^^

@jm9176 jm9176 added the enhancement New feature or request label Apr 8, 2025
@abhibaruah
Copy link
Member

@jm9176 Can you check if you still see this error?
I tried the repro steps on a valid group (a folder that contains a valid .zgroup file) and zarrwriteatt does behave as expected.
It creates a .zattrs file as expected.

If I call zarrwriteatt on a folder that does not contain .zgroup file, an error is thrown which is expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants