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 measure analogue of the promote-time writer: both tables and the root’s metadata_table block 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.zarr store.

  • tables (PreparedImageTables) – The split payload to write.

  • objmap_target (str | None) – Store-relative path of the label image the measurement table indexes. None reads it from the store.

  • durable (bool | None) – fsync before promoting. None auto-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:

Path