visualdynamics.gui.averaging_panel¶
averaging_panel
¶
The averaging parameters, as a table beside the time history.
Five numbers are set here — start, frame length, overlap, window, frame count — and four more are shown that follow from them: where the analysis ends, how fine the frequency resolution will be, how long each frame lasts, and how many averages the PSD will actually be built from. The derived four are never edited, because a value that can be typed in two places disagrees with itself by the second edit.
The panel says what the parameters are, reports when they move, and computes with its own buttons (Compute PSDs, CPSDs, FRFs, Multiple Coherence, Spectra) — each calling the project verb a script calls, with whatever is set at that moment (principle 13).
A capture the controller already cut into frames arrives with its frame length and count settled by the file. The panel shows them, greyed, and leaves only the window live — there is no second frame inside a record to overlap with, and nowhere for the start to go.
Classes:
| Name | Description |
|---|---|
AveragingPanel |
The parameter table. Edits arrive as a whole |
Classes¶
AveragingPanel
¶
Bases: QWidget
The parameter table. Edits arrive as a whole Averaging.
Methods:
| Name | Description |
|---|---|
chosen_window |
Which window shapes each frame. |
show_history |
Point the panel at a time history and the averaging set on it. |
set_averaging |
Restate the panel from an averaging — what a drag arrives as. |
averaging |
The averaging the editors currently describe, unclamped. |
Source code in src/visualdynamics/gui/averaging_panel.py
57 58 59 60 61 62 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 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 | |
Methods:¶
chosen_window
¶
Which window shapes each frame.
Not window(): that is Qt's own verb on every widget, for the
top-level window this one sits in, and taking the name would
hand a string to the next 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.
The record's length and rate are what every clamp is against, so they come from the history rather than being guessed from the numbers already in the boxes.
Source code in src/visualdynamics/gui/averaging_panel.py
set_averaging
¶
set_averaging(averaging: Averaging) -> None
Restate the panel from an averaging — what a drag arrives as.
Source code in src/visualdynamics/gui/averaging_panel.py
averaging
¶
averaging() -> Averaging
The averaging the editors currently describe, unclamped.