Subtract Signals
Module name: SubtractSignals
Package: CEAMSModules 7.4.0
Version: 2.0.0
Overview
Subtract signals from a specific channel from the signals of a list of channels.
This module can be used to reformat a montage.
Note
For example, to reformat C3-CLE to C3-A2, the input channel is [C3-CLE], and the channel to subtract is [A2-CLE]. To rename properly the channel, the new channel name can be provided.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
List |
— |
List of SignalModel and their informations
Properties:
samples:np.array
List of samples
start_time:float
Start time in seconds of the signal in relation to the beginning
of the recording.
end_time:float
End time in seconds of the signal in relation to the beginning
of the recording.
duration:float
Duration in seconds of the signal.
sample_rate:float
Sampling rate of the signal
channel:str
Name of the channel
alias:str
Channel alias.
meta:dict
Optional information about this signal
is_modified:bool
Has the signal been modified or not.
|
|
String or List of strings (usually the output of Alias Signals) |
— |
A string with the name of the initial channels. Can be multiple split with “;” |
|
String or a list of strings |
— |
A string with the name of the channel to Subtract |
|
String (let empty to use the default channel name) |
— |
To rename the new Subtracted channel.
Valid only when a single channel is Subtracted.
|
Outputs
Output |
Format |
Description |
|---|---|---|
|
List |
List of SignalModel and their informations
Properties:
samples:np.array
List of samples
start_time:float
Start time in seconds of the signal in relation to the beginning
of the recording.
end_time:float
End time in seconds of the signal in relation to the beginning
of the recording.
duration:float
Duration in seconds of the signal.
sample_rate:float
Sampling rate of the signal
channel:str
Name of the channel
alias:str
Channel alias.
meta:dict
Optional information about this signal
is_modified:bool
Has the signal been modified or not.
|
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Subtract Signals 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.