convnwb.io.io.open_h5file¶
- convnwb.io.io.open_h5file(file_name, folder=None, mode='r', ext='.h5', **kwargs)[source]¶
Context manager to open a HDF5 file.
- Parameters:
- 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.
- Yields:
- h5file
Open h5file object.
Notes
This function is a wrapper for h5py.File, creating a context manager.