visualdynamics.gui.pulse_panel¶
pulse_panel
¶
The classical pulse a record is judged against, and what came of it.
The Pulse Check reading of a time history draws the record on the
tolerance envelope of a nominal classical pulse, the samples outside it
marked and the velocity window shaded (plot.classical_pulse). This
panel holds the pulse (its shape, peak, duration and edge) and the
tolerances it is judged under (the band, the duration's, the edges'
limit, the velocity change's and the quiet either side), and under the
rule, the numbers: the measured peak, duration and edges against
nominal, the velocity change against nominal, the samples outside, and
the verdict in words.
Every edit redraws the plot at once, so the effect of a tolerance is
seen on the record while it is set. Nothing is made: the check is a
reading of a record that already exists, so there is no Apply button.
core.classical_pulse.check_pulse, the call a script makes, gives every
number shown here.
The peak is entered in the window's units for acceleration and kept in SI, so a change of unit system shows the same pulse in the new units rather than reinterpreting the number in the box.
Classes:
| Name | Description |
|---|---|
PulsePanel |
The pulse, its tolerances and the readout. Edits are emitted as |
Classes¶
PulsePanel
¶
Bases: QWidget
The pulse, its tolerances and the readout. Edits are emitted as
settings().
Methods:
| Name | Description |
|---|---|
defaults |
The settings a record opens on when it has none: a 50 g, |
shape |
The shape chosen, one of |
set_unit_system |
Show the peak in |
settings |
The check's arguments, in SI and as shares: 'shape', 'peak' |
set_settings |
Set every field from |
show_check |
Write a |
Source code in src/visualdynamics/gui/pulse_panel.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 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 | |
Methods:¶
defaults
staticmethod
¶
The settings a record opens on when it has none: a 50 g, 11 ms half-sine (the peak in SI) and the module's tolerances.
Source code in src/visualdynamics/gui/pulse_panel.py
shape
¶
set_unit_system
¶
Show the peak in unit_system's acceleration unit, keeping
the pulse it describes.
Source code in src/visualdynamics/gui/pulse_panel.py
settings
¶
The check's arguments, in SI and as shares: 'shape', 'peak' (m/s²), 'duration' and 'edge' (seconds; edge None for a half-sine), 'band', 'duration_tolerance', 'edge_limit', 'velocity_tolerance' and 'quiet' (durations).
Source code in src/visualdynamics/gui/pulse_panel.py
set_settings
¶
Set every field from settings (as settings() gives them)
without a redraw per field; then emit once, unless told not to.
Source code in src/visualdynamics/gui/pulse_panel.py
show_check
¶
Write a core.classical_pulse.PulseCheck's numbers and its
verdict, in bold when it is flagged; None clears the numbers and
shows reason in their place.