-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Special treatment of NaN in JSON user attributes #412
Comments
Just want to keep track of this: zarr-developers/community#37 (comment)
|
This is also related to zarr-developers/zarr-specs#81, the stdlib json does not respect the json spec, and we should decide what to do about this. |
This was included in the v3 spec: https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html#fill-value |
This is a problem that showed up when testing the Zarr Julia interface. Currently nan-values in user-attribute values are not converted to strings (see example below), which does not adhere to JSON specs and causes the Julia JSON parser to fail. So I would suggest to do something analogous to the
fill_value
entry in.zarray
, i.e. to either forbidnan
in zarr user attributes or convert them to strings to make the resulting JSON valid.The text was updated successfully, but these errors were encountered: