Skip to main content

task

Prefect task for the CST/CRT calculation step (v3).

Identical to v2 but for how the EZ pair's boundaries are read. The layers model draws each layer as a thin closed polygon around the band, and the vertex it starts from varies between B-scans. v2 reads the EZ and RPE boundaries the way CST reads ILM and RPE, keeping the points from that start up to the rightmost vertex: one edge when the outline starts at its left end, both edges merged and alternating when it starts part-way along. The EZ-to-RPE separation then jumps between neighbouring A-scans, and each dip below the threshold breaks the intact run. v3 reads the EZ band's top edge and the RPE band's bottom edge at every A-scan (build_band_edge_boundaries).

CST/CRT is computed exactly as in v2. The version exists to move the task_hash: it does not cover the SDK's code, so without the bump every EZ value cached under v2 would keep being served. Moving the hash recomputes CST along with EZ, which is thickness maths over already-cached layer inferences. v2's partition survives, so pinning a template back to v2 is a complete rollback.

Module​

Functions​

cst_calculation_task_v3​

def cst_calculation_task_v3(    datasource: BaseSource,    config: CSTCalculationConfigV2,    layer_predictions: CacheAccessor,    center_predictions: CacheAccessor,    filenames: list[str],    cache: CacheProtocol,    task_hash: str,    project_id: str | None = None,    run_id: str | None = None,) ‑> CSTCalculationResult:

Compute CST/CRT metrics for each file and persist them to cache.

The EZ pair is read as band edges. See run_cst_calculation for the arguments.