pyvale.strain.strainchecks module

check_strain_files(strain_files)[source]

Check for strain/deformation files in the given path(s) and return their filenames.

Parameters:

strain_files (str, pathlib.Path, list[str], or list[Path]) – Path(s) or glob pattern(s) pointing to the strain/deformation files.

Returns:

list[str] – A sorted list of filenames (not full paths) matching the input path(s)/pattern(s).

Raises:

FileNotFoundError – If no files matching the given path(s) or pattern(s) are found.

Examples

>>> check_strain_files("data/strain_*.tif")
['strain_001.tif', 'strain_002.tif', 'strain_003.tif']