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 grayed 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 labor 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. |
show_span |
Point the panel at a span of time with no record behind 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
show_span
¶
show_span(first: float, last: float, period: float, truncation: Truncation) -> None
Point the panel at a span of time with no record behind it.
The import window: the run is still in its file, so the walls and the sample count come from its clock — first and last instant, and the period between samples — rather than from an abscissa nobody has read yet.
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