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

Getting datasets in a group #32

Open
braunsonm opened this issue Jun 25, 2018 · 2 comments
Open

Getting datasets in a group #32

braunsonm opened this issue Jun 25, 2018 · 2 comments

Comments

@braunsonm
Copy link

braunsonm commented Jun 25, 2018

What are you trying to do?

Getting a list of datasets from a group for looping.

What did you do?

I believe it's possible to use a combination of the functions here:
https://github.com/gonum/hdf5/blob/master/h5g.go#L108

num := f.NumObjects()

Then looping for the range of num and calling ObjectNameByIndex on each.

What did you expect to happen?

A property in the Group struct here: https://github.com/gonum/hdf5/blob/master/h5g.go#L25

An array with each of the dataset names so that they can be looped and opened easily with a f.OpenDataset("myname")

What version of Go, Gonum, Gonum/netlib and libhdf5 are you using?

1.10.2

Does this issue reproduce with the current master?

Yes.

@kortschak
Copy link
Member

kortschak commented Jun 26, 2018

Please do not edit out parts of the pro forma.

### What did you do?
<!-- Please include a link to a minimal reproducer here. -->
### What actually happened?
<!-- Please include an annotated output image if available. -->

It seems that this is more of a question than an issue.

If the issue is a question about usage or similar, please ask at the
Gonum discussion list rather than filing an issue:

https://groups.google.com/forum/#!forum/gonum-dev

@braunsonm
Copy link
Author

This is more of a feature request. Currently there is no way to get a list of dataset names from a group from the API unless you did what I mentioned above.

It seems like something you could reasonably assume would be in the struct for a group.

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

2 participants