convnwb.io.io.load_from_h5file¶
- convnwb.io.io.load_from_h5file(fields, file_name, folder=None, ext='.h5', **kwargs)[source]¶
Load one or more specified field(s) from a HDF5 file.
- Parameters:
- fieldstr or list of str
Name(s) of the field to load from the HDF5 file.
- file_namestr
File name of the h5file to open.
- folderstr or Path, optional
Folder to open the file from.
- extstr, optional default: ‘.h5’
The extension to check and use for the file.
- **kwargs
Additional keyword arguments to pass into h5py.File.
- Returns:
- datadict
Loaded data field from the file. Each key is the field label, each set of values the loaded data.