dcnum.read.hdf5_concat
Functions
|
Return a virtual dataset concatenating all the input paths |
Module Contents
- dcnum.read.hdf5_concat.concatenated_hdf5_data(paths: list[pathlib.Path], path_out: bool | pathlib.Path | None = True, compute_frame: bool = True, features: list[str] | None = None)[source]
Return a virtual dataset concatenating all the input paths
- Parameters:
paths – Path of the input HDF5 files that will be concatenated along the feature axis. The metadata will be taken from the first file.
path_out – If None, then the dataset is created in memory. If True (default), create a file on disk. If a pathlib.Path is specified, the dataset is written to that file. Note that datasets in memory are likely not pickable (so don’t use them for multiprocessing).
compute_frame – Whether to compute the “events/frame” feature, taking the frame data from the input files and properly incrementing them along the file index.
features – List of features to take from the input files.
Notes
If one of the input files does not contain a feature from the first input paths, then a ValueError is raised. Use the features argument to specify which features you need instead.
Basins are not considered.