prsctrl.data.util.archive_data#

archive_data(data_dir_path: str, archive_dirs: str | list[str], n_wavelengths_threshold=0)[source]#

Save a zip of the 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. :param data_dir_path: :param archive_dirs: archive directory or list of archive directories :param n_wavelengths_threshold: Minimum number of wavelengths the data must have to be archived :return: