xbout.lazyload.LazyFileArray¶
- class xbout.lazyload.LazyFileArray(filepath, varname, shape, dtype, info=False)[source]¶
Bases:
objectPresents a numpy-like interface that defers reads to HDF5 hyperslabs.
- Parameters:
varname (str)
info (bool)
- __init__(filepath, varname, shape, dtype, info=False)[source]¶
- filepath: str or Path
Full path to the file
- varname: str
Name of the array to read
- shape: tuple
The shape of the array in the file
- dtype
Type of the elements in the array (e.g. numpy.float64)
- info: bool
Print debugging information on read?
- Parameters:
varname (str)
info (bool)
Methods
__init__(filepath, varname, shape, dtype[, info])filepath: str or Path