Skip to main content

alignment.align_histology_with_units

alignment.align_histology_with_units(
    channel_model,
    unit_model,
    recorded,
    trace_xyz,
    *,
    pid,
    channel_result=None,
    unit_weight=UNIT_WEIGHT,
    half_width_um=UNIT_HALF_WIDTH_UM,
    progress=None,
)

Channel-only and channel + unit alignments of one probe along its histology trace.

Args: channel_result: The channel-only result, if already computed (its trace predictions are reused).

Returns: tuple: (channel_result, combined_result). combined_result is None when the probe has no usable unit rows; otherwise it carries in diagnostics the calibrated channel, unit and fused costs and the fusion summary.