Skip to content

hertzforge.drawing.viz.paired

paired

Drawing decisions for paired: what a figure needs to know, with none of the code that draws it.

Functions:

Name Description
paired_arrays

The two objects' curves, matched into stations by label.

paired_stage_curves

The pair placed on the stage, overlaid (mode 'overlay') or

Classes

Functions:

paired_arrays

paired_arrays(loud: Any, quiet: Any, loud_records: Sequence[int] | None = None, quiet_records: Sequence[int] | None = None, unit_system: UnitSystem | None = None, budget: int = POINT_BUDGET, quantity: tuple[str, str | None] | None = None, page: int = 0) -> dict[str, Any]

The two objects' curves, matched into stations by label.

Each object's curves come from waterfall_arrays (its records, quantity and page), with half of budget points each. A station exists where both objects have a record with the same label (DOF and quantity, as record_label writes it); records only one side has are left out and counted in unmatched. Returns a dict of stations (each {'label', 'loud', 'quiet'}, the last two (x, z) curves), unmatched, and the loud object's log_scaled, xlabel, zlabel, page and pages.

paired_stage_curves

paired_stage_curves(loud: Any, quiet: Any, loud_records: Sequence[int] | None = None, quiet_records: Sequence[int] | None = None, mode: str = 'overlay', unit_system: UnitSystem | None = None, budget: int = POINT_BUDGET, quantity: tuple[str, str | None] | None = None, page: int = 0) -> dict[str, Any]

The pair placed on the stage, overlaid (mode 'overlay') or divided ('ratio').

The paired counterpart of waterfall.stage_curves, separate for the same reason: the app draws this stage in VTK and the report draws it in a canvas, and two normalizations would give two pictures of one measurement. Returns the dict of paired_arrays with runs added (each {'station', 'points', 'levels', 'quiet', 'label'}, where quiet marks the gray object of an overlay), the real extents (x0, x1, z0, z1) the stage stands for, and drawn, the number of stations.

In 'ratio' the division is snr.signal_to_noise at full resolution, the same call the flat plot and the report's flat figure use, and the channels are the flat plot's too (snr.picked): those of the loud_records picked, or every shared channel when none of them is shared, with quantity narrowing them. One station a channel, not paged. The axis title becomes 'signal to noise [dB]'.