spvctrl.data.finalize.archive_transient#
- archive_transient(data_dir_path: str | Path, archive_dirs: str | list[str], min_file_count: int = 0) list[Exception][source]#
Archive the data directory as a zip file, if it contains enough per-pulse partial files.
The data directory is only archived if the number of
PART_-prefixed partial files is at leastmin_file_count(thearchive_file_count_thresholdconfig setting), so that test measurements are not archived.- Parameters:
data_dir_path – Data directory to archive
archive_dirs – Directory or list of directories to store the zip archive in
min_file_count – Minimum number of partial files required for archiving
- Returns:
List of exceptions that occurred during archiving (empty on success)