phenotypic.sdk_.source_image_stem#

phenotypic.sdk_.source_image_stem(path: Path) str[source]#

Return the canonical artifact stem for a source image path.

OME-Zarr source images use a double suffix, so their identity strips the complete .ome.zarr suffix. Every other source keeps the standard pathlib.Path.stem contract, including ordinary multi-dot files.

Parameters:

path (Path) – Source image file or OME-Zarr store path.

Returns:

The canonical source-image stem.

Return type:

str