Event Subdivision

Module name: EventSubdivision

Package: CEAMSModules 7.4.0

Version: 0.0.0

Overview

Create a new pandas DataFrame of events with subwindow of every input events named events_names.

Inputs

Input

Format

Default

Description

events

pandas DataFrame

df of events with field
group: Group of events this event is part of (String)
name: Name of the event (String)
start_sec: Starting time of the event in sec (Float)
duration_sec: Duration of the event in sec (Float)
channels: Channel where the event occures (String)

events_names

String

String of the desired events to take in account. Separated by a
comma. ex)’stage_2’ or ex)’stage_1,stage2,stage3’

window_sec

Integer

Duration of new subwindow in second. Must be a dividers of previous
events.

n_window

Integer [Optionnal]

Number of windows in one window.

Outputs

Output

Format

Description

new_events

pandas DataFrame

df of events with field :
group: Group of events this event is part of (String)
name: Name of the event (String)
start_sec: Starting time of the event in sec (Float)
duration_sec: Duration of the event in sec (Float)
channels: Channel where the event occures (String)
New event name will be name_sub

Usage in a process

  1. Open Dev Tools -> New process in Snooz.

  2. In the Module Library, find Event Subdivision under the Events Utilities category.

  3. Drag the module onto the process canvas.

  4. Connect the required inputs from upstream modules (or set values in the Settings tab).

  5. Connect outputs to downstream modules as needed.

  6. Double-click the module to configure parameters in the Settings tab.

  7. Run the process and inspect results in the Results tab.

Note

For general guidance on building processes with modules, see Explore examples.