radiens_core.models.dsp
Digital Signal Processing (DSP) domain models and enums.
| CLASS | DESCRIPTION |
|---|---|
DSPGroup |
Group of DSP filter stages, organized by hardware/software layers. |
DSPParams |
Configuration parameters for a single DSP filter stage. |
DSPParamsDict |
Typed dict shorthand for |
DSPType |
Digital Signal Processing filter type. |
FilterFamily |
IIR filter design family. |
FilterStage |
Digital Signal Processing filter stage. |
FreqSpecBand |
Frequency band specification for filters. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
FlexDSPParams |
|
FlexDSPType |
|
FlexFilterFamily |
|
FlexFilterStage |
|
Attributes
FlexDSPParams
module-attribute
FlexDSPParams = DSPParams | DSPParamsDict
FlexDSPType
module-attribute
DSPType that also accepts a string name (case-insensitive) or int value.
FlexFilterFamily
module-attribute
FlexFilterFamily = FilterFamily | FilterFamilyStr | int | None
FilterFamily that also accepts a string name (case-insensitive) or int index.
FlexFilterStage
module-attribute
FlexFilterStage = FilterStage | FilterStageStr | int
FilterStage that also accepts a string name (case-insensitive) or int index.
Classes
DSPGroup
Bases: BaseModel
Group of DSP filter stages, organized by hardware/software layers.
| ATTRIBUTE | DESCRIPTION |
|---|---|
hardware |
List of hardware filter stages. |
software_stage1 |
List of software stage 1 filters. |
software_stage2 |
List of software stage 2 filters. |
DSPParams
Bases: BaseModel
Configuration parameters for a single DSP filter stage.
Set at most one of freq, freq_spec_band and ref_ntv_chan_idx: the one the
filter type uses.
| ATTRIBUTE | DESCRIPTION |
|---|---|
type |
DSP filter type. Also accepts string names (e.g.
TYPE:
|
stage |
DSP filter stage. Also accepts string names or int index.
TYPE:
|
freq |
Cutoff frequency in Hz, for lowpass and highpass; center frequency for notch.
TYPE:
|
freq_spec_band |
Passband or stopband, for bandpass and bandstop.
TYPE:
|
ref_ntv_chan_idx |
Native index of the reference channel, for virtual and paired references.
TYPE:
|
notch_bandwidth |
Notch width in Hz. Required, and positive, for a notch.
TYPE:
|
user_label |
User-defined label for the filter. Defaults to "".
TYPE:
|
port |
Amplifier port the filter applies to. Ignored when |
target_ntv_chan_idx |
Native index of the channel a paired reference is applied to. Required for a paired reference.
TYPE:
|
is_aux |
Whether the filter applies to an analog input (AIN) channel rather than an amplifier port. Defaults to False.
TYPE:
|
aux_chan_idx |
Native index of the AIN channel. Required when
TYPE:
|
filter_order |
Filter order.
TYPE:
|
zero_phase |
Not supported;
TYPE:
|
force_sos |
Whether to force second-order sections. Ignored for notch filters. Defaults to False.
TYPE:
|
family |
IIR design family. Defaults to None, which designs a Butterworth. Ignored for notch and referencing filters.
TYPE:
|
ripple_db |
Chebyshev-I passband ripple in dB.
TYPE:
|
DSPParamsDict
Bases: TypedDict
Typed dict shorthand for DSPParams.
The type and port keys are required; all other keys are optional, stage
included.
Example
DSPType
FilterFamily
FilterStage
Bases: IntEnum
Digital Signal Processing filter stage.
| ATTRIBUTE | DESCRIPTION |
|---|---|
STAGE_HARDWARE |
Filters on the acquisition hardware. Recorded samples include them.
|
STAGE1 |
Software filters applied before recording. Recorded samples include them.
|
STAGE2 |
Software filters applied when data is read, never stored. KPI metrics, spike
detection, and
|