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

Attribute transpose and type change behavior looks incorrect

Open
#34 3 comments 0 reactions 1 assignee View on GitHub

@abhibaruah is already working on this.

Since Apr 11, 2025.

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

Description

There is type conversion going on for the attributes. For e.g. in the following case if I write two attributes (double and cell array), then reading the array back does a transpose and changes the type.

>> zarrcreate('prt_grp/my_arr',[10 10]);
>> zarrwriteatt('prt_grp/my_arr','attr1',[1,2,3]);
>> zarrwriteatt('prt_grp/my_arr','attr2',["my","attr"]);

>> info = zarrinfo('prt_grp/my_arr');
>> info

info = 

  struct with fields:

                 chunks: [2×1 double]
             compressor: []
    dimension_separator: '.'
                  dtype: '<f8'
             fill_value: []
                filters: []
                  order: 'C'
                  shape: [2×1 double]
            zarr_format: 2
                  attr1: [3×1 double]
                  attr2: {2×1 cell}
              node_type: 'array'

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.