phenotypic.sdk_.replace_image_tables#
- phenotypic.sdk_.replace_image_tables(store_path: Path, tables: PreparedImageTables, *, objmap_target: str | None = None, durable: bool | None = None, commit_guard: Callable[[], AbstractContextManager[None]] | None = None) Path[source]#
Refresh one store’s measurement AND metadata tables together.
The
--mode measureanalogue of the promote-time writer: both tables and the root’smetadata_tableblock move as one root-last transaction, so the store never certifies a table it does not have or a snapshot it was not built against.- Parameters:
store_path (Path) – A promoted
*.ome.zarrstore.tables (PreparedImageTables) – The split payload to write.
objmap_target (str | None) – Store-relative path of the label image the measurement table indexes.
Nonereads it from the store.durable (bool | None) –
fsyncbefore promoting.Noneauto-detects SLURM.commit_guard (Callable[[], AbstractContextManager[None]] | None) – Publication guard, checked at the commit point.
- Returns:
The store path.
- Raises:
ValueError – If the store declares no objmap target.
- Return type: