dcnum.read.mapped
Classes
An index-mapped object for accessing an HDF5 dataset |
Functions
|
Return integer numpy array with mapping indices for a range |
|
|
|
Module Contents
- class dcnum.read.mapped.MappedHDF5Dataset(h5ds: dcnum.common.h5py.Dataset, mapping_indices: numpy.ndarray)[source]
An index-mapped object for accessing an HDF5 dataset
- Parameters:
h5ds (h5py.Dataset) – HDF5 dataset from which to map data
mapping_indices (np.ndarray) – numpy indexing array containing integer indices
- h5ds
- mapping_indices
- shape
- dcnum.read.mapped.get_mapping_indices(index_mapping: numbers.Integral | slice | list | numpy.ndarray)[source]
Return integer numpy array with mapping indices for a range
- Parameters:
index_mapping (numbers.Integral | slice | list | np.ndarray) – Several options you have here: - integer: results in np.arrange(integer) - slice: results in np.arrange(slice.start, slice.stop, slice.step) - list or np.ndarray: returns the input as unit32 array