Trim Signal
Module name: TrimSignal
Package: CEAMSModules 7.4.0
Version: 2.0.0
Overview
Trim a list of SignalModel objects and an events table to a target time window.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
list[SignalModel] |
— |
Input signal segments to crop. Each element is expected to provide
at least: samples, sample_rate, start_time, end_time, and duration.
|
|
pandas.DataFrame |
— |
Event annotations with at least start_sec and duration_sec columns. |
|
float | str |
— |
Absolute start time (in seconds) of the trimming window. |
|
float | str |
— |
Duration (in seconds) of the trimming window. |
|
bool |
True |
If True, output signal/event times are shifted so trimmed data starts at 0.
If False, absolute timeline is preserved.
|
Outputs
Output |
Format |
Description |
|---|---|---|
|
list[SignalModel] |
Deep-copied and trimmed signals, with updated timing metadata. |
|
pandas.DataFrame |
Events overlapping the trimming window, clipped to boundaries and optionally
time-shifted depending on reset_time.
|
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Trim Signal under the Signal Processing category.
Drag the module onto the process canvas.
Connect the required inputs from upstream modules (or set values in the Settings tab).
Connect outputs to downstream modules as needed.
Double-click the module to configure parameters in the Settings tab.
Run the process and inspect results in the Results tab.
Note
For general guidance on building processes with modules, see Explore examples.