prsctrl.data.finalize.copy_files_and_save_hdf5#
- copy_files_and_save_hdf5(data_or_dir_path: Path | str | PrsData, target_dirs: Path | str | list[Path | str], dont_save_partial_files=True, **prsdata_kw) list[Exception][source]#
Save data in hierarchical HDF5 and copy csvs and pdfs into the hierarchical directory.
Errors during saving are caught and returned instead of being raised immediately. This means if saving to one location fails, the data may still be saved in other locations.
- Parameters:
data_or_dir_path – PrsData or location.
dont_save_partial_files
copy_data_dirs – Directory(ies) to copy the data to
prsdata_kw – Keyword arguments for the
PrsDataconstructor, if a path is given.
- Returns:
Any errors that occured.