bamboost.core.hdf5.filemap
Attributes
- _VT_filemap=
typing.Type[h5py.h5py.Group | h5py.h5py.Dataset]
Classes
KeysViewHDF5
Attributes:
- __repr__=
bamboost.core.hdf5.filemap.KeysViewHDF5.__str__
KeysViewHDF5.__str__
(self) -> str_FileMapMixin
_FileMapMixin.__repr__
(self)_FileMapMixin.keys
(self) -> KeysViewHDF5_FileMapMixin.datasets
(self) -> tuple[str, ...]_FileMapMixin.groups
(self) -> tuple[str, ...]_FileMapMixin._repr_pretty_
(self, p, _cycle)Arguments:
- p
- _cycle
FileMap
FileMap
(self, file)Arguments:
- file:
HDF5File
Attributes:
- _file=
bamboost.core.hdf5.filemap.FileMap(file) - _dict:
dict[HDF5Path, bamboost.core.hdf5.filemap._VT_filemap]={bamboost.core.hdf5.hdf5path.HDF5Path('/'): h5py.h5py.Group}A cache of all known paths in the file and their types (Group or Dataset). Paths are absolute.
A cache of immediate children names for each group path.
A set of group paths that have been expanded (i.e., their children have been fetched from the file).
Bases
FileMap.__len__
(self) -> intFileMap.__iter__
(self) -> Iterator[HDF5Path]FileMap.__delitem__
(self, key) -> NoneArguments:
- key:
str
FileMap.__setitem__
(self, key, value) -> NoneArguments:
- key:
str - value:
_VT_filemap
FileMap.__getitem__
(self, key) -> _VT_filemapArguments:
- key:
str
FileMap.expand_group
(self, path) -> NoneFetch immediate children of the given path from the HDF5 file and cache them.
Arguments:
- path:
HDF5Path
FileMap.populate
(self, *, exclude_numeric=False) -> NoneEagerly visit all groups and datasets to cache them. Assumes the file is open.
Arguments:
- exclude_numeric:
bool=False
FileMap.invalidate
(self) -> NoneFilteredFileMap
FilteredFileMap
(self, file_map, parent) -> NoneArguments:
- file_map:
FileMap - parent:
str
Attributes:
- parent=
HDF5Path(parent) - file_map=
bamboost.core.hdf5.filemap.FilteredFileMap(file_map)
Bases
FilteredFileMap.__len__
(self)FilteredFileMap.__iter__
(self)FilteredFileMap.__delitem__
(self, key)Arguments:
- key
FilteredFileMap.__setitem__
(self, key, value)Arguments:
- key:
str - value
FilteredFileMap.__getitem__
(self, key)Arguments:
- key:
str
FilteredFileMap.children
(self) -> Iterator[HDF5Path]FilteredFileMap.children_groups
(self) -> Iterator[HDF5Path]FilteredFileMap.children_datasets
(self) -> Iterator[HDF5Path]
Bamboost