phenotypic.sdk_.store_stem#

phenotypic.sdk_.store_stem(store_path: Path) str[source]#

Return the image stem of an *.ome.zarr or *.zarr directory.

Path.stem is WRONG here — it strips one suffix and leaves img.ome, which is a plausible-looking wrong name rather than an error: it propagates into parquet filenames and completion markers, and zarr_store_path(out, ds, "img.ome") then resolves to a store that does not exist, so every image reprocesses forever.

Parameters:

store_path (Path) – A <stem>.ome.zarr or <stem>.zarr directory.

Returns:

The bare stem, e.g. "img" for img.ome.zarr.

Raises:

ValueError – If store_path does not end in .zarr. It raises rather than falling back to .stem, because a silent fallback is exactly the failure being prevented.

Return type:

str