visualdynamics.viz.paired¶
paired
¶
Two densities on one stage: channels receding, paired per station.
The 3-D reading of two selected PSDs (Brandon, 2026-08-25), in the banded stage's own idiom: each shared channel is a station along the depth axis, and at each station the two objects meet — the louder drawn level-coloured, the quieter stood back in the muted grey a compared reference wears. The Ratio reading divides instead: one curve per station, in decibels, linear — the number being read is the decibel.
Rides waterfall_arrays for decimation, paging and labels, and
density_ratio for the division, so the stage, the flat plots and
the report cannot disagree about a value.
Kept free of Qt, like the rest of viz.
Functions:
| Name | Description |
|---|---|
paired_arrays |
The two objects' curves, matched into stations by label. |
add_paired_stage |
Draw the pair into a plotter — overlaid, or divided in dB. |
plot_paired_stage |
The headless call for the stage's paired readings. |
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.
A station exists where both objects hold a record of the same
label (DOF and quantity, as record_label spells it); records
only one side holds are left out and counted in unmatched.
Source code in src/visualdynamics/viz/paired.py
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 unit stage — overlaid, or divided.
The paired counterpart of waterfall.stage_curves, and here for
the same reason: the app draws this stage in VTK and the report
draws it in a canvas, and two normalizations would be two
pictures of one measurement. Returns runs — each
{'station', 'points', 'levels', 'quiet', 'label'}, the quiet
ones being the stood-back object in an overlay — plus the real
extents (x0, x1, z0, z1) the stage stands in for, the station
labels, and the axis titles.
In 'ratio' the division is density_ratio at full resolution —
the same call the flat plot and the report's flat figure divide
through — so no reading of a pair can disagree with another.
Source code in src/visualdynamics/viz/paired.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
add_paired_stage
¶
add_paired_stage(
plotter: Any,
loud: Any,
quiet: Any,
loud_records: Sequence[int] | None = None,
quiet_records: Sequence[int] | None = None,
mode: str = "overlay",
unit_system: UnitSystem | None = None,
theme: Any = None,
budget: int = POINT_BUDGET,
quantity: tuple[str, str | None] | None = None,
page: int = 0,
) -> dict[str, Any]
Draw the pair into a plotter — overlaid, or divided in dB.
The numbers come from paired_stage_curves, which the report's
canvas figure reads too; this places them in VTK and labels the
axes with the real ranges the stage stands in for.
Source code in src/visualdynamics/viz/paired.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | |
plot_paired_stage
¶
plot_paired_stage(
loud: Any,
quiet: Any,
mode: str = "overlay",
unit_system: UnitSystem | None = None,
theme: Any = None,
screenshot: str | None = None,
show: bool = True,
) -> Any
The headless call for the stage's paired readings.