spvctrl.data.finalize.copy_scan#

copy_scan(series_dir: str | Path, target_dirs: str | list[str]) → list[Exception][source]#

Copy the final files of a scan series to the target directories.

The files in the series directory (the series .tspv file, csv and plots) are copied to <target>/<series dir name>/. The per-point measurement subdirectories are not copied. Copying to a target directory that already contains the series is skipped.

Parameters:
  • series_dir – Series directory containing the series .tspv file

  • target_dirs – Directory or list of directories to copy the data to

Returns:

List of exceptions that occurred (empty on success)