visualdynamics.gui.srs_tolerance_panel¶
srs_tolerance_panel
¶
The points rule's settings, beside a shock spectrum judged against its requirement.
The Points reading of a shock-spectrum comparison draws each selected
spectrum against the requirement's tolerance band, its points outside
marked (plot.srs_tolerance). This panel holds what that judgement is
made under (the inner band, the outer band if any, the rule and the
share it asks for, or the requirement's own limits as the bands when
it has them) and, under the rule, what came of it: for each
polarity the count and share of its points inside and the verdict, and
its worst point with its distance from the requirement in dB.
Every edit redraws the plot at once, so the effect of a band or a rule
is seen on the spectrum while it is set. Nothing is made: the
judgement is a reading of two objects that already exist, as the RMS
deviation bars are, so there is no Apply button to press. The same
call a script makes, core.compliance.srs_tolerance, gives every
number shown here.
Classes:
| Name | Description |
|---|---|
SrsTolerancePanel |
The settings and the readout. Edits are emitted as |
Classes¶
SrsTolerancePanel
¶
Bases: QWidget
The settings and the readout. Edits are emitted as settings().
Methods:
| Name | Description |
|---|---|
rule |
The rule chosen, one of |
settings |
The judgement's arguments as |
offer_limits |
Offer a requirement's own limits as the bands, without a |
set_settings |
Set the fields without a redraw per field, then emit once. |
show_results |
Write each judged spectrum's line: the count and share inside |
Source code in src/visualdynamics/gui/srs_tolerance_panel.py
Methods:¶
rule
¶
settings
¶
The judgement's arguments as srs_tolerance takes them:
'inner', 'outer' (None when unticked, or when the requirement's
limits stand for the band), 'rule', 'percent' and 'limits'.
Source code in src/visualdynamics/gui/srs_tolerance_panel.py
offer_limits
¶
Offer a requirement's own limits as the bands, without a
redraw: key names the requirement and record shown, and
inner and outer are its warning and abort bands as
compliance.srs_limit_bands gives them, None where it has
none. A requirement new to the panel ticks the choice, so it is
judged against the curves its comparison shades, and a band
that is a fixed number of dB seeds its fields, so unticking
starts from the requirement's numbers. The same key offered
again keeps what was set.
Source code in src/visualdynamics/gui/srs_tolerance_panel.py
set_settings
¶
set_settings(inner: tuple[float, float] | None = None, outer: tuple[float, float] | None = None, rule: str | None = None, percent: float | None = None, limits: bool | None = None) -> None
Set the fields without a redraw per field, then emit once.
Source code in src/visualdynamics/gui/srs_tolerance_panel.py
show_results
¶
Write each judged spectrum's line: the count and share inside
and the verdict (plot.srs_tolerance.describe), then its worst
point. names labels each spectrum when its polarity alone
would not tell two apart. Empty results clears the readout.