Open krokosik opened 1 year ago
I've managed to track down the code causing the issue. It looks like the comment was left by @shoyer. Could you elaborate on the issues you encountered when updating variables? I could help implementing this mechanism
What happened?
When using the new functionality of calling
to_zarr
on DataArrays, I've noticed that the attributes are not updated and can only be set once, on initial archive creation. In our case, we are performing sequential writes to the Zarr regions and also want to update attributes. Regular Zarr API allows updating metadata and it also works with Datasets, so we suspect it's an issue with DataArrays. In fact, when callingto_zarr
, the DataArray is converted to a Dataset, but when we check it, it does not have its attributes, as they live inside the nested array.What did you expect to happen?
I would like to update attributes in the same manner as with plain Zarr or with Datasets. Currently, we have to resort to modifying the
.zmetadata
JSON and consider this dangerous and hacky.Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment