visualdynamics.gui.multi_point_panel¶
multi_point_panel
¶
The multi-point reading's settings, beside a random run's control channels drawn with their composite.
The Composite reading of a random comparison combines the control
channels into the composite a controller holds and judges the
composite against the composite band and each channel against its own
(plot.multi_point). This panel holds what that reading is made
under (the strategy, the weights under a weighted average, and the two
bands, each a pair of the specification's limits or a pair of dB) and,
under the rule, what came of it: the composite's lines outside its
band, then each channel's lines outside its own and how many of those
the composite was inside at, then the notes.
Every edit redraws the plot at once, so the effect of a strategy or a
band is seen on the curves while it is set. Nothing is made: the
reading is of two objects that already exist, as the RMS bars are, so
there is no Apply button to press. The same call a script makes,
core.multi_point.multi_point, gives every number shown here.
Classes:
| Name | Description |
|---|---|
MultiPointPanel |
The settings and the readout. Edits are emitted as |
Functions:
| Name | Description |
|---|---|
parse_weights |
The weights typed, numbers separated by commas or spaces; None |
Classes¶
MultiPointPanel
¶
Bases: QWidget
The settings and the readout. Edits are emitted as settings().
Methods:
| Name | Description |
|---|---|
strategy |
The strategy chosen, one of |
settings |
The reading's arguments as |
offer_bands |
Offer a specification's own limits as the bands, without a |
set_settings |
Set the fields without a redraw per field, then emit once. A |
show_results |
Write the reading: the composite's line |
Source code in src/visualdynamics/gui/multi_point_panel.py
Methods:¶
strategy
¶
settings
¶
The reading's arguments as multi_point takes them:
'strategy', 'weights' (None unless weighted; the field's text
when it holds something that is not a list of numbers, for the
window to refuse), 'composite_band' and 'individual_band'.
Source code in src/visualdynamics/gui/multi_point_panel.py
offer_bands
¶
Offer a specification's own limits as the bands, without a
redraw: key names the specification, warning and abort
say which pairs it carries, and channels is how many control
channels are combined. A specification new to the panel starts
the composite on its warning limits (its abort limits, or a
band in dB, where it lacks them) and the channels on a band in
dB; the same key offered again keeps what was set. The weights
field is seeded with equal weights whenever the count changes.
Source code in src/visualdynamics/gui/multi_point_panel.py
set_settings
¶
set_settings(strategy: str | None = None, weights: tuple[float, ...] | None = None, composite_band: Any = None, individual_band: Any = None) -> None
Set the fields without a redraw per field, then emit once. A band is a key of the specification's limits or a pair of dB.
Source code in src/visualdynamics/gui/multi_point_panel.py
show_results
¶
Write the reading: the composite's line
(plot.multi_point.describe_composite), each channel's
(describe_channel) and the notes. With no reading, reason
says why there is none.
Source code in src/visualdynamics/gui/multi_point_panel.py
Functions:¶
parse_weights
¶
The weights typed, numbers separated by commas or spaces; None for an empty field.
Raises:
| Type | Description |
|---|---|
ValueError
|
For a field holding anything that is not a number. |