pysdic.SDICAnalysis.from_archive#
- classmethod SDICAnalysis.from_archive(file_path, *, check_integrity=True, auto_construct=True)[source]#
Load an analysis saved with
to_archive().The archive is extracted in a temporary folder, loaded with
from_folder()(same checks), then the temporary folder is removed.- Parameters:
file_path (Union[str, os.PathLike]) – The archive to load.
check_integrity (bool, optional (default:
True)) – If True, the SHA-256 of all the files are checked (seefrom_folder()).auto_construct (bool, optional (default:
True)) – Whether to construct the interpolation functions of the images.
- Returns:
The loaded analysis.
- Return type:
- Raises:
FileNotFoundError – If the file does not exist.
ValueError – If the file is not a valid ZIP archive, contains unsafe paths, or cannot be loaded (see
from_folder()).