-
-
Notifications
You must be signed in to change notification settings - Fork 330
Group print hierarchy #82
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
Comments
Maybe something like a visitor pattern ( https://github.com/alimanfoo/zarr/issues/92 ) would help with this. |
Yep that could be useful. I was just thinking to produce some ASCII art
showing the hierarchy down to a specified level, with node names and node
types (Array/Group) as a minimum.
…On Wednesday, November 30, 2016, jakirkham ***@***.***> wrote:
Maybe something like a visitor pattern ( #92
<https://github.com/alimanfoo/zarr/issues/92> ) would help with this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/alimanfoo/zarr/issues/82#issuecomment-263967668>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAq8QiKa8pKAvmzS4-jJZRIG4KKeU9p8ks5rDcxLgaJpZM4KQ6jg>
.
--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health <http://cggh.org>
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Email: [email protected]
Web: http://purl.org/net/aliman
Twitter: https://twitter.com/alimanfoo
Tel: +44 (0)1865 287721
|
Sure, that would be good too. Maybe diagrams could be made akin to those used in Dask's graphs. Wonder if @mrocklin has any suggestions. |
I would personally stick to ASCII. I would look at what PyTables does as well as bash tools like
|
This may be an option. ( https://github.com/mbr/asciitree ) |
mbr/asciitree looks good. Already on conda-forge too I see.
…On Wed, 30 Nov 2016 at 21:49, jakirkham ***@***.***> wrote:
This may be an option. ( https://github.com/mbr/asciitree )
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/alimanfoo/zarr/issues/82#issuecomment-264006526>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAq8QsYv3KLzFXhxDQOSFor4GKoVu2-mks5rDe9ygaJpZM4KQ6jg>
.
|
If you want to go the standard library way, maybe |
Yep asciitree looks good. Can be configured to produce output very similar to linux
|
Wanted to see how easy this would be now that we have visitor-style methods. Went ahead and threw together PR ( https://github.com/alimanfoo/zarr/pull/140 ). FWICT it seems to work ok. That said, I don't know that I will be able to do lots of iteration on it near term. So if you are wanting to get it in quickly, please feel free to run with it. |
Consider implementing a method on the Group class like "describe" or "ls" which will print whole hierarchy for a given hierarchy depth.
The text was updated successfully, but these errors were encountered: