visualdynamics.gui.shock_panel¶
shock_panel
¶
The shocks found in a time history, as a table beside it.
There is one row per event: when its window starts and how long it is. Both can be edited, because detection can miss or misplace an event, and they are the same two numbers that dragging a region on the plot changes, so the table and the plot show one list. Detect finds the events again, Add adds a window the detector missed, Remove deletes the selected one, and Same length for all gives every window one length.
Below the table are the SRS settings (Q, which peak, and lines per
octave), the band the windows support, and the velocity check of every
acceleration channel over every window (core.shock_check). Compute
SRS computes the spectra with whatever is set at that moment, through
the project verb a script calls, as the averaging panel does for a
PSD.
Classes:
| Name | Description |
|---|---|
ShockPanel |
The events, and what can be done to them. |
Classes¶
ShockPanel
¶
Bases: QWidget
The events, and what can be done to them.
changed carries the whole list instead of the row that moved: the
list is short, the receiver redraws the overlay from all of it
either way, and a difference nobody uses is one more thing that can
be wrong.
Methods:
| Name | Description |
|---|---|
set_shocks |
Show these shocks without emitting |
srs_settings |
The SRS settings as |
show_check |
Show the velocity check's words, |
show_band |
Show the frequency band, in Hz, the current windows support. |
Source code in src/visualdynamics/gui/shock_panel.py
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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | |
Methods:¶
set_shocks
¶
set_shocks(shocks: Sequence[Shock], locked: bool = False) -> None
Show these shocks without emitting changed. With locked
(a file that already cut the record into captures), the table
and its editing buttons are disabled.
Source code in src/visualdynamics/gui/shock_panel.py
srs_settings
¶
The SRS settings as compute_srs keyword arguments: q,
kind and per_octave.
Source code in src/visualdynamics/gui/shock_panel.py
show_check
¶
Show the velocity check's words, core.shock_check.summarize,
in bold when a window is flagged; hidden when there are none.