I wish to recursively visit all the Datasets in an HDF5 file and return a list of all their names. I’ve gotten the “visititems()” method to work if I merely want to print a list but I’m not sure how I modify visititems() to return an actual Python list rather than just printing it. I want to retrieve an actual list of the Datasets in the file and then iterate over that list later in the program.
visititems() seems like it’s limited to only having (name, object) in the calling interface and returning a list will cause it to terminate early.
Any good ideas for working my way around these limitations?