You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears data variables are lost when writing and subsequently reading an Xarray.DataTree with Icechunk. I'd be glad to look into this further to see if it relates to upstream issues (e.g., pydata/xarray#9960), but first wanted to check if there's a known solution.
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[4], line 11
9 session.commit("Commit datatree")
10 roundtripped = xr.open_datatree(session.store, engine="zarr")
---> 11 xr.testing.assert_equal(root, roundtripped)
[... skipping hidden 1 frame]
File [/opt/conda/lib/python3.11/site-packages/xarray/testing/assertions.py:138](https://hub.openveda.cloud/opt/conda/lib/python3.11/site-packages/xarray/testing/assertions.py#line=137), in assert_equal(a, b, check_dim_order)
136 assert a.equals(b), formatting.diff_coords_repr(a, b, "equals")
137 elif isinstance(a, DataTree):
--> 138 assert a.equals(b), diff_datatree_repr(a, b, "equals")
139 else:
140 raise TypeError(f"{type(a)} not supported by assertion comparison")
AssertionError: Left and right DataTree objects are not equal
Data at node 'set1' does not match:
Data variables only on the left object:
a int64 8B 0
b int64 8B 1
Data at node 'set2' does not match:
Differing dimensions:
(x: 2) != ()
Data variables only on the left object:
a (x) int64 16B 2 3
b (x) float64 16B 0.1 0.2
The text was updated successfully, but these errors were encountered:
It appears data variables are lost when writing and subsequently reading an Xarray.DataTree with Icechunk. I'd be glad to look into this further to see if it relates to upstream issues (e.g., pydata/xarray#9960), but first wanted to check if there's a known solution.
MVCE
The text was updated successfully, but these errors were encountered: