Skip to content
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

tree method for groups #109

Open
Artur-man opened this issue Sep 9, 2024 · 0 comments
Open

tree method for groups #109

Artur-man opened this issue Sep 9, 2024 · 0 comments

Comments

@Artur-man
Copy link
Contributor

Artur-man commented Sep 9, 2024

It seems the printing method for the hierarchy similar to zarr-python is missing in pizzarr ?
and if missing should this be a public method under ZarrGroup ?

import zarr
g1 = zarr.group()
g2 = g1.create_group('foo')
g3 = g1.create_group('bar')
g4 = g3.create_group('baz')
g5 = g3.create_group('quux')
d1 = g5.create_dataset('baz', shape=100, chunks=10)
g1.tree()
/
 ├── bar
 │   ├── baz
 │   └── quux
 │       └── baz (100,) float64
 └── foo
g1.tree(level=2)
/
 ├── bar
 │   ├── baz
 │   └── quux
 └── foo
g3.tree()
bar
 ├── baz
 └── quux
     └── baz (100,) float64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant