visualdynamics.gui.truncate_panel¶
truncate_panel
¶
The truncation parameters, as a table beside the time history.
Two instants are set here — where the kept stretch starts and where it
stops — and the record on the plot shows the cut as it is made: the
discarded ends greyed over, the kept span between two draggable edges
(plot.truncation), the same span-editing grammar as the averaging
region because it is the same kind of gesture.
The panel says what the settings are, reports when they move, and its Apply Truncation button makes the truncated record with whatever is set at that moment — the project verb a script calls, the same division of labour as the averaging and filter panels, because it is the same kind of thing: parameters that ride the record.
Classes:
| Name | Description |
|---|---|
TruncatePanel |
The parameter table. Edits arrive as a whole |
Classes¶
TruncatePanel
¶
Bases: QWidget
The parameter table. Edits arrive as a whole Truncation.
Methods:
| Name | Description |
|---|---|
show_history |
Point the panel at a time history and the span set on it. |
set_truncation |
Restate the panel from a truncation, without re-emitting. |
truncation |
The truncation the editors currently describe. |
Source code in src/visualdynamics/gui/truncate_panel.py
Methods:¶
show_history
¶
show_history(
history: TimeHistory, truncation: Truncation
) -> None
Point the panel at a time history and the span set on it.
The walls come from the history rather than being guessed from the numbers already in the boxes.
Source code in src/visualdynamics/gui/truncate_panel.py
set_truncation
¶
set_truncation(truncation: Truncation) -> None
Restate the panel from a truncation, without re-emitting.
Source code in src/visualdynamics/gui/truncate_panel.py
truncation
¶
truncation() -> Truncation