prsctrl.data.finalize.archive_data#
- archive_data(data_dir_path: Path | str, archive_dirs: Path | str | list[Path | str], n_wavelengths_threshold=0) list[Exception][source]#
Save a zip of the data directory in the archive directory (if it contains enough partial files).
This is restriction is to prevent the archive being flooded with small test measurements.
Errors during archiving are caught and returned instead of being raised immediately. This means if archiving to one location fails, the archive may still be created in other locations.
- Parameters:
data_dir_path
archive_dirs – archive directory or list of archive directories
n_wavelengths_threshold – Minimum number of wavelengths the data must have to be archived
- Returns:
Any errors that occured.