strainchecks.py¶
- check_strain_files(strain_files)[source]¶
Check for strain/deformation files in the given path and return their filenames.
- Parameters:
strain_files (
strorpathlib.Path) – Path or glob pattern pointing to the strain/deformation files.- Returns:
list[str]– A sorted list of filenames (not full paths) matching the input path/pattern.- Raises:
FileNotFoundError – If no files matching the given path or pattern are found.
Examples
>>> check_strain_files("data/strain_*.tif") ['strain_001.tif', 'strain_002.tif', 'strain_003.tif']