Skip to content

Using "../prt_grp/arr1" throws kvstore error but not with zarrinfo #57

Closed
@jm9176

Description

@jm9176

If I have an existing Zarr array, then I can read the array info from a different directory using zarrinfo, but I cannot modify the content or create a new array using the same workflow. Could you please check this behavior?

>> zarrinfo('../prt_grp/arr1')

ans = 

  struct with fields:

                 chunks: [2×1 double]
             compressor: []
    dimension_separator: '.'
                  dtype: '<f8'
             fill_value: []
                filters: []
                  order: 'C'
                  shape: [2×1 double]
            zarr_format: 2
              node_type: 'array'

>> zarrread('../prt_grp/arr1')
Error using ZarrPy>readZarr (line 68)
Python Error: ValueError: Error parsing object member "kvstore": Invalid file path: "../prt_grp/arr1" [source
locations='tensorstore/internal/json_binding/json_binding.h:829\ntensorstore/internal/json_binding/json_binding.h:873\ntensorstore/internal/json_binding/json_binding.h:829']

Error in zarrread (line 13)
data = zarrObj.read;
^^^^^^^^^^^^^^^^^^^^
 

>> zarrcreate('../prt_grp/arr1',[10 10]);
Error using ZarrPy>createZarr (line 37)
Python Error: ValueError: Error parsing object member "kvstore": Invalid file path: "../prt_grp/arr1" [source
locations='tensorstore/internal/json_binding/json_binding.h:829\ntensorstore/internal/json_binding/json_binding.h:873\ntensorstore/internal/json_binding/json_binding.h:829']

Error in zarrcreate (line 78)
zarrObj.create(options.Datatype, datashape, options.ChunkSize, options.FillValue, options.Compression)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 

>> zarrwrite('../prt_grp/arr1',ones([10 10]));
Error using ZarrPy>writeZarr (line 52)
Python Error: ValueError: Error parsing object member "kvstore": Invalid file path: "../prt_grp/arr1" [source
locations='tensorstore/internal/json_binding/json_binding.h:829\ntensorstore/internal/json_binding/json_binding.h:873\ntensorstore/internal/json_binding/json_binding.h:829']

Error in zarrwrite (line 14)
zarrObj.write(data)
^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions