phenotypic.sdk_.replace_embedded_measurement_table#

phenotypic.sdk_.replace_embedded_measurement_table(store_path: Path, table: PreparedEmbeddedMeasurementTable, *, objmap_target: str | None = None, durable: bool | None = None, commit_guard: Callable[[], AbstractContextManager[None]] | None = None) Path[source]#

Replace one store’s authoritative table without recomputing pixel arrays.

A complete root-last store transaction whose unchanged files are hard-linked where the platform permits.

Superseded by replace_image_tables() on every forward path. It survives for the one consumer that still reads and rewrites pre-inversion stores byte-exactly – --mode migrate, whose reclaim authority compares a store’s bytes against a joined payload. (--mode recompile was the other, until its per-store rewrite was removed outright on 2026-09-11; it now writes no store byte.) Retire it with the last of those call sites. It deliberately leaves metadata_table and tables.metadata exactly as it found them: it has no metadata payload to describe, and clearing a block it knows nothing about would be a guess.

Parameters:
Return type:

Path