How can I read a hdf5 table datablock as:
domains = h5.root.'a name with blanks'
If this is not possible, but maybe with special signs?
How can I read a hdf5 table datablock as:
domains = h5.root.'a name with blanks'
If this is not possible, but maybe with special signs?
Copyright © 2021 Jogjafile Inc.
Your question is specific to PyTables. You can also read HDF5 with h5py. Both packages support objects with spaces in dataset (table) and group names.
Here are the ways to access a HDF5 object (table, dataset, or group) using each package. The example assumes 'name with blank' is a dataset. The code still works to get a group object, but you can't create an array from a group.
PyTables method:
Note that when defining
wherewith a name, PyTables requires the full path, including the a '/'.h5py method: