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
We are missing the Group.tree method from 2.x. We should add it for backward compatibility.
Steps to reproduce
In [18]: root=zarr.group()
In [19]: root.tree()
--------------------------------------------------------------------------NotImplementedErrorTraceback (mostrecentcalllast)
CellIn[19], line1---->1root.tree()
File~/miniforge3/envs/icechunk-demo/lib/python3.12/site-packages/zarr/core/group.py:1474, inGroup.tree(self, expand, level)
1473deftree(self, expand: bool=False, level: int|None=None) ->Any:
->1474returnself._sync(self._async_group.tree(expand=expand, level=level))
File~/miniforge3/envs/icechunk-demo/lib/python3.12/site-packages/zarr/core/sync.py:185, inSyncMixin._sync(self, coroutine)
182def_sync(self, coroutine: Coroutine[Any, Any, T]) ->T:
183# TODO: refactor this to to take *args and **kwargs and pass those to the method184# this should allow us to better type the sync wrapper-->185returnsync(
186coroutine,
187timeout=config.get("async.timeout"),
188 )
File~/miniforge3/envs/icechunk-demo/lib/python3.12/site-packages/zarr/core/sync.py:141, insync(coro, loop, timeout)
138return_result=next(iter(finished)).result()
140ifisinstance(return_result, BaseException):
-->141raisereturn_result142else:
143returnreturn_resultFile~/miniforge3/envs/icechunk-demo/lib/python3.12/site-packages/zarr/core/sync.py:100, in_runner(coro)
95""" 96 Await a coroutine and return the result of running it. If awaiting the coroutine raises an 97 exception, the exception will be returned. 98 """99try:
-->100returnawaitcoro101exceptExceptionasex:
102returnexFile~/miniforge3/envs/icechunk-demo/lib/python3.12/site-packages/zarr/core/group.py:1244, inAsyncGroup.tree(self, expand, level)
1243asyncdeftree(self, expand: bool=False, level: int|None=None) ->Any:
->1244raiseNotImplementedErrorNotImplementedError:
Additional output
No response
The text was updated successfully, but these errors were encountered:
Zarr version
3.0.0.beta
Numcodecs version
0.13
Python Version
3.11
Operating System
Mac
Installation
pip
Description
We are missing the
Group.tree
method from 2.x. We should add it for backward compatibility.Steps to reproduce
Additional output
No response
The text was updated successfully, but these errors were encountered: