visualdynamics.gui.statistics_panel¶
statistics_panel
¶
The time statistics of a record, beside the three rows that draw them.
The Statistics reading of a time history draws one channel's trace,
its histogram against the Gaussian and its kurtosis frame by frame
(plot.time_statistics). This panel holds what the reading is made
with, above the rule: the channel's range when it is known, how close
to it a sample counts as on the rail, the frame the kurtosis is read
over (sized from the record's bandwidth at its lowest), the duration the expected largest peak is for, and the band the
record's kurtosis is judged against, 2 to 4 as the kurtosis bars use
and settable tighter. Under the rule is the table of every number the
reading gives (core.time_statistics), and under the table the
judgement in words.
A statistic outside its band is set in bold and named in the words under the table, never told apart by color alone. Every edit redraws the rows at once. Nothing is made: the reading is of a record that already exists, as the kurtosis bars are, so there is no Apply button.
Classes:
| Name | Description |
|---|---|
StatisticsPanel |
The settings and the table. Edits are emitted as |
Classes¶
StatisticsPanel
¶
Bases: QWidget
The settings and the table. Edits are emitted as settings().
Methods:
| Name | Description |
|---|---|
set_unit |
Name the range in the units the trace is drawn in. |
settings |
The reading's settings: 'full_scale' (in the units the trace |
set_settings |
Set the fields from a |
show_statistics |
Fill the table from |
Source code in src/visualdynamics/gui/statistics_panel.py
Methods:¶
set_unit
¶
settings
¶
The reading's settings: 'full_scale' (in the units the trace is drawn in, None while the range is unticked or unset), 'margin' as a share, 'frame' and 'duration' in seconds ('frame' None to size it from the bandwidth, 'duration' None for the record's own length), 'kurtosis_band', and 'range_given', the tick itself: ticked with no range typed yet reads no range, but the tick has to survive the redraw it causes, or the box springs back before a range can be typed.
Source code in src/visualdynamics/gui/statistics_panel.py
set_settings
¶
Set the fields from a settings() dict without a redraw per
field; emits nothing, since the caller is about to draw.
Source code in src/visualdynamics/gui/statistics_panel.py
show_statistics
¶
show_statistics(stats: TimeStatistics | None, transform: tuple[float, float] = (1.0, 0.0), unit: str = '', time: tuple[float, str] = (1.0, 's')) -> None
Fill the table from stats, its values put into the display
units by transform (the unit system's (scale, offset), SI =
value * scale + offset) and labeled unit, its times and rates
by time, (scale, label); a flagged statistic is set in bold,
and the words under the table say what is flagged. None clears
the table.
Source code in src/visualdynamics/gui/statistics_panel.py
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 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | |