-
-
Notifications
You must be signed in to change notification settings - Fork 329
Issue with xarray and zarr when dimensions start with "meta" #1105
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
Comments
We also saw this issue because we had our internal "metadata" group. What are the reserved prefixes for the new v3 spec that users should be aware of? |
Yes, I can make a PR to allow names like |
Just wanted to check if your pull request has been accepted. When is the next patch release supposed to happen? |
Zarr version
2.12.0
Numcodecs version
0.10.1
Python Version
3.8.10, 3.10.5
Operating System
Linux
Installation
pip
Description
Currently I'm working with xarray for MRSI analysis. I have been using xarray datasets with one the dimensions labeled as "metabolite." Previously I have been able to save and load the data to zarr with no issues using xr.Dataset.to_zarr and xr.open_zarr.
Currently I'm getting an issue where I get an error raised by zarr that complains about this dimension starting with "meta." I think this may be due to a new version of zarr. I have copied the error below.
When I changed the dimension name (i.e. the zarr subfolder and .zmetadata file) from "metabolite" to something that doesn't start with "meta" then I can load the data properly.
Someone may need to modify the xr.Dataset.to_zarr and xr.open_zarr functions in case an xarray user decides to create a dimension that starts with "meta" and wants to save their dataset to zarr.
Please let me know if you need to send any additional info.
Steps to reproduce
See description. Here's a link to the bug report I posted on xarray's github page: pydata/xarray#6853
Additional output
No response
The text was updated successfully, but these errors were encountered: