visualdynamics.gui.drive_prediction_panel¶
drive_prediction_panel
¶
The settings of a drive prediction, and what it came to, beside it.
The Drive Prediction toggle offered on the bar when an FRF and a
specification are selected together draws the drives the specification
asks for through the FRF, one channel's predicted response and every
quantity against its rating (plot.drive_prediction). This panel holds
what the prediction is made with (the inverse and its regularization,
the run's length for the expected peaks, the peak each drive may reach
and the shaker behind every drive, its ratings the ones the Stroke
reading takes) and, under them, the verdict: which quantity runs out
first, at what share of its rating and where, and each quantity in a
line.
Every edit redraws at once, so a rating is seen against the drives
while it is typed. Nothing is made: the prediction is of two objects
that exist, so there is no Apply button. A rating or a limit left at
zero is not given, and is reported without a verdict. The same call a
script makes, core.drive_prediction.predict_drives, gives every
number shown here.
The settings 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 |
|---|---|
DrivePredictionPanel |
The settings and the verdict. Edits are emitted as |
Functions:
| Name | Description |
|---|---|
defaults |
The settings a fresh panel holds: |
prediction_arguments |
The panel's settings as |
Classes¶
DrivePredictionPanel
¶
Bases: QWidget
The settings and the verdict. Edits are emitted as
settings().
Methods:
| Name | Description |
|---|---|
settings |
The settings in SI: 'method', 'tolerance', 'weight', |
set_settings |
Show these settings (SI; missing ones at their defaults) |
set_unit_system |
Show the settings in |
set_drive_quantity |
Show the drive limit in the drives' quantity: volts, or the |
show_prediction |
Write the verdict and a line a quantity, in the units shown; |
Source code in src/visualdynamics/gui/drive_prediction_panel.py
Methods:¶
settings
¶
The settings in SI: 'method', 'tolerance', 'weight',
'duration', 'drive_limit' and the shaker ratings, each rating
and the limit None where not given (prediction_arguments
turns them into predict_drives's arguments).
Source code in src/visualdynamics/gui/drive_prediction_panel.py
set_settings
¶
Show these settings (SI; missing ones at their defaults) without reporting an edit.
Source code in src/visualdynamics/gui/drive_prediction_panel.py
set_unit_system
¶
set_unit_system(unit_system: UnitSystem) -> None
set_drive_quantity
¶
Show the drive limit in the drives' quantity: volts, or the force unit for drives measured in force.
Source code in src/visualdynamics/gui/drive_prediction_panel.py
show_prediction
¶
show_prediction(prediction: DrivePrediction | None, refusal: str | None = None) -> None
Write the verdict and a line a quantity, in the units shown; the refusal in its place when the prediction could not be made; both empty for None.
Source code in src/visualdynamics/gui/drive_prediction_panel.py
Functions:¶
defaults
¶
The settings a fresh panel holds: predict_drives's own
defaults, and no ratings.
Source code in src/visualdynamics/gui/drive_prediction_panel.py
prediction_arguments
¶
The panel's settings as predict_drives takes them: the shaker
ratings gathered into one ShakerRating for every drive, or none
when no rating is given.