visualdynamics.gui.resample_panel¶
resample_panel
¶
A record's resampling, beside the spectrum that shows it.
The Resample reading of a time history draws one channel's
autospectrum as recorded and at a lower rate three ways, filtered first,
decimated bare and low-passed after decimating, with the span, the
Nyquist frequency, the dropped lines and the folds marked
(plot.resample). This panel holds what the reading is made with,
above the rule: the decimation factor (the new rate is the record's
over it, since keeping every q-th sample is the only resampling done),
the anti-alias filter's order, the frame the spectra are taken with,
and the frequencies above the new Nyquist frequency to fold, the
record's tallest line there when none is typed. Under the rule are the
rates, the span and its lines, and the filter's gain at the span's top
and at the lowest frequency that folds into it (core.resample), and
under them each fold in words.
Every edit redraws at once. Apply Resample makes the record
(Project.resample, the call a script makes), beside the source and
linked to it, at the factor and the filter order shown.
Classes:
| Name | Description |
|---|---|
ResamplePanel |
The settings and the readout. Edits are emitted as |
Functions:
| Name | Description |
|---|---|
frequencies_text |
The frequencies as the field shows them, '4600, 7000'; empty for |
parse_frequencies |
The frequencies typed in the field, sorted and without repeats: |
Classes¶
ResamplePanel
¶
Bases: QWidget
The settings and the readout. Edits are emitted as settings().
Methods:
| Name | Description |
|---|---|
settings |
The reading's settings: 'factor', 'order', 'frame_length' in |
set_settings |
Set the fields from a |
show_reading |
Fill the readout from |
Source code in src/visualdynamics/gui/resample_panel.py
Methods:¶
settings
¶
The reading's settings: 'factor', 'order', 'frame_length' in samples at the new rate, and 'frequencies' in Hz (None while the field is empty, for the record's tallest line).
Source code in src/visualdynamics/gui/resample_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/resample_panel.py
show_reading
¶
show_reading(reading: ResampleReading | None) -> None
Fill the readout from reading; None clears it.
Source code in src/visualdynamics/gui/resample_panel.py
Functions:¶
frequencies_text
¶
The frequencies as the field shows them, '4600, 7000'; empty for none.
parse_frequencies
¶
The frequencies typed in the field, sorted and without repeats: an empty tuple for an empty field, None when the text is not a list of numbers above zero.