visualdynamics.gui.averaging_panel¶
averaging_panel
¶
The averaging settings, as a table beside the time history.
The settings are the start, the frame length, the overlap, the window (with its parameter, for the Tukey and Kaiser windows), the detrend and the frame count. The values that follow from them are shown below and cannot be edited: how many averages the spectra are built from, what those averages are worth (the statistical degrees of freedom, nominal and discounted for overlap, and the 90 percent confidence band they give), the frequency resolution, how long each frame lasts, and where the analysis ends. They cannot be edited because a value that could be typed in two places would disagree with itself after the second edit. Detect fills the settings in from the record itself.
The panel says what the settings are, reports when they change, and computes with its own buttons (Compute PSDs, Compute CPSDs, Compute FRFs, Multiple Coherence and Compute Spectra), each calling the project verb a script calls, with whatever is set at that moment (principle 13). The FRF and coherence buttons are shown only when the history has excitation and response channels.
A capture the controller already cut into one record per average keeps every setting editable, with the file's frames as the default. Only Detect is disabled, because there is no stream to search for the test.
Classes:
| Name | Description |
|---|---|
AveragingPanel |
The settings table. Edits are emitted as a whole |
Classes¶
AveragingPanel
¶
Bases: QWidget
The settings table. Edits are emitted as a whole Averaging.
Methods:
| Name | Description |
|---|---|
chosen_window |
The name of the window applied to each frame. |
show_history |
Point the panel at a time history and the averaging set on it. |
set_averaging |
Show an averaging in the panel without emitting |
averaging |
The averaging the editors currently describe, before it is |
Source code in src/visualdynamics/gui/averaging_panel.py
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 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 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | |
Methods:¶
chosen_window
¶
The name of the window applied to each frame.
It is not called window() because that is Qt's own method on
every widget, returning the top-level window this one is in, and
a string in its place would break any caller that meant Qt's.
Source code in src/visualdynamics/gui/averaging_panel.py
show_history
¶
show_history(history: TimeHistory, averaging: Averaging) -> None
Point the panel at a time history and the averaging set on it.
Every limit on the boxes comes from the record's length and sample rate, taken from the history instead of guessed from the numbers already in the boxes.
Source code in src/visualdynamics/gui/averaging_panel.py
set_averaging
¶
set_averaging(averaging: Averaging) -> None
Show an averaging in the panel without emitting changed. A
drag on the plot arrives this way.
Source code in src/visualdynamics/gui/averaging_panel.py
averaging
¶
averaging() -> Averaging
The averaging the editors currently describe, before it is clamped to the record.