load_bundles#
- pyvisgen.utils.data.load_bundles(data_path: Union(String, Path), dataset_type: Union(String, None) = None) list[source]#
Loads bundle paths, filters for HDF5 files, and returns them in a naturally ordered list.
- Parameters:
- data_pathstr or Path
Path to the directory containing the HDF5 files.
- dataset_typestr, optional
Type of the dataset to filter, e.g. ‘train’, ‘valid’, or ‘test’.
- Returns:
- bundleslist
Naturally ordered list containing paths to HDF5 files.