visualdynamics.gui.stroke_panel¶
stroke_panel
¶
The shaker's shock ratings, beside a pulse read against them.
The Stroke reading of a time history draws the record's acceleration,
its velocity and its displacement, integrated raw, on one clock
(plot.stroke). This panel holds what the pulse is judged against (the
shaker's shock stroke, velocity and force, the moving mass, and the
body's mass) and, under them, what the reading came to: the peak
acceleration and velocity, the table's peak to peak beside the
half-sine rule, the travel with the body counted, peak to peak and each
way from center, and the force, then each demand against its rating in
words.
Every edit redraws the plot at once, so a rating is seen against the
pulse while it is typed. Nothing is made: the reading is of a record
that already exists, as the kurtosis bars are, so there is no Apply
button to press. A rating left at zero is not given, and is reported
without a verdict. The same call a script makes,
core.stroke.read_stroke, gives every number shown here.
The ratings are kept in SI and shown in the window's units, so a change of units restates them rather than reinterpreting them.
Classes:
| Name | Description |
|---|---|
StrokePanel |
The ratings and the readout. Edits are emitted as |
Classes¶
StrokePanel
¶
Bases: QWidget
The ratings and the readout. Edits are emitted as settings().
Methods:
| Name | Description |
|---|---|
settings |
The ratings as |
set_settings |
Show these ratings (SI, None or missing for none) without |
set_unit_system |
Show the ratings in |
show_reading |
Write what |
Source code in src/visualdynamics/gui/stroke_panel.py
Methods:¶
settings
¶
The ratings as core.stroke.read_stroke takes them, in SI:
'stroke', 'velocity', 'force', 'moving_mass' and 'body_mass',
each None where it is not given.
Source code in src/visualdynamics/gui/stroke_panel.py
set_settings
¶
Show these ratings (SI, None or missing for none) without reporting an edit.
Source code in src/visualdynamics/gui/stroke_panel.py
set_unit_system
¶
set_unit_system(unit_system: UnitSystem) -> None
Show the ratings in unit_system's units.
Source code in src/visualdynamics/gui/stroke_panel.py
show_reading
¶
show_reading(reading: StrokeReading | None) -> None
Write what reading came to under the ratings, in the units
shown; None clears it.