spvctrl.data.finalize.archive_scan#
- archive_scan(series_dir: str | Path, archive_dirs: str | list[str], min_file_count: int = 0) list[Exception][source]#
Archive a scan series directory as a zip file, if it contains enough per-pulse partial files.
Counts the
PART_-prefixed partial files in the series directory AND its point subdirectories, so that scan series are archived like single measurements.- Parameters:
series_dir – Series 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 (empty on success)