Skip to content

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

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 22, 2025 · 0 comments
Open

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

jm9176 opened this issue Apr 22, 2025 · 0 comments

Comments

@jm9176
Copy link
Member

jm9176 commented Apr 22, 2025

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)
^^^^^^^^^^^^^^^^^^^

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

No branches or pull requests

1 participant