Discard Events
Module name: DiscardEvents
Package: CEAMSModules 7.4.0
Version: 2.1.0
Overview
To discard too long, too short or events that occur during artefacts.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
Pandas DataFrame |
— |
DataFrame events (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’]) |
|
String |
— |
Event group to filter (discard too long, short). |
|
String |
— |
Event name to filter (discard too long, short). |
|
float |
0 |
Mimimum length accepted, shorter events are discared. |
|
float |
30 |
Maximum length accepted, longer events are discared. |
|
bool |
0 |
‘1’ : discard events that occur during an artefact.
‘0’ : keep all events
|
|
String |
— |
Events to considered as artefact.
The user can define a single group (and let the name blank) or a single name (and let the group blank).
If group and name are defined, they must be defined in pairs.
Each group should be separated by a comma. The group works as a pattern matching.
|
|
String |
— |
Events to considered as artefact.
Each name should be separated by a comma. The name works as a pattern matching.
|
Outputs
Output |
Format |
Description |
|---|---|---|
|
Pandas DataFrame |
DataFrame events (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’]) |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Discard Events under the Events Utilities 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.