visualdynamics.gui.author_panel¶
author_panel
¶
The specification being edited, as tables beside the plot.
What an author states, laid out to be stated: the breakpoints and a level per channel in one grid, every pair's coherence and phase in another with one row that sets them all, and the bands in decibels. The plot beside it draws the autospectra with their bands. One sheet for every door in: a shape set's modal coordinates, a channel table's control channels, a specification opened to edit (Brandon, 2026-09-04: a generic editor, not a modal one).
The two grids are the application's ordinary tables (PLAN.md, "How
tables behave"; Brandon, 2026-09-06: every editable table should be
the same table): CopyPasteTableView over TableModel columns, so
a column header selects the column, a row header the row, Cmd-click
adds a cell, and copy, paste, Delete-to-clear, Batch Edit and the
fill handle come from the one implementation rather than being
written here again. A frequency typed between two others re-sorts
the breakpoints rather than refusing them.
Nothing here computes anything. The panel hands back a
SpecificationDraft in SI and says when it moved; the window lands
every edit on the specification through project.author_specification.
Classes:
| Name | Description |
|---|---|
Sheet |
What the two grids edit: the draft's fields, mutable, in SI. |
AuthorPanel |
The draft as two grids and the bands; every edit is the object's. |
Functions:
| Name | Description |
|---|---|
sheet_models |
(breakpoints, pairs): the sheet's two grids as the ordinary |
Classes¶
Sheet
¶
Sheet(draft: SpecificationDraft, unit_system: UnitSystem)
What the two grids edit: the draft's fields, mutable, in SI.
The models write here cell by cell and the panel reads a draft back whole; the display unit is applied on the way out and undone on the way in, so a cell nobody touched keeps its exact SI value.
Methods:
| Name | Description |
|---|---|
draft |
The sheet as a draft — refused by the draft's own rules for |
sort |
Breakpoints in frequency order, their levels along — a |
Source code in src/visualdynamics/gui/author_panel.py
Methods:¶
draft
¶
draft() -> SpecificationDraft
The sheet as a draft — refused by the draft's own rules for what no specification could hold.
Source code in src/visualdynamics/gui/author_panel.py
sort
¶
Breakpoints in frequency order, their levels along — a frequency typed between two others lands where it belongs (Brandon, 2026-09-06: typed out of order, the sheet stalled).
Source code in src/visualdynamics/gui/author_panel.py
AuthorPanel
¶
Bases: QWidget
The draft as two grids and the bands; every edit is the object's.
Methods:
| Name | Description |
|---|---|
show_draft |
Lay the draft out, in the display units of each channel's |
draft |
The draft the sheet holds, in SI. Raises |
Source code in src/visualdynamics/gui/author_panel.py
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 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 | |
Methods:¶
show_draft
¶
show_draft(
draft: SpecificationDraft,
unit_system: UnitSystem,
origin: str = "",
spacing_hint: float | None = None,
) -> None
Lay the draft out, in the display units of each channel's
density. origin says where the sheet came from;
spacing_hint the line spacing to offer when the draft
remembers none — a time history's averaging, say.
Source code in src/visualdynamics/gui/author_panel.py
draft
¶
draft() -> SpecificationDraft
The draft the sheet holds, in SI. Raises ValueError for
what no specification could hold.
Source code in src/visualdynamics/gui/author_panel.py
Functions:¶
sheet_models
¶
sheet_models(
sheet: Sheet, parent: Any = None
) -> tuple[TableModel, TableModel]
(breakpoints, pairs): the sheet's two grids as the ordinary table models — the conventions test holds them to the contract. The cells journal through the verb the window calls on every edit, so each column is declared journalled elsewhere.