Extend Events
Module name: ExtendEvents
Package: CEAMSModules 7.4.0
Version: 2.0.0
Overview
Extend or shrink events by a percentage of their duration, applied to each side.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
pandas.DataFrame |
— |
A dataframe with required columns:
[‘group’, ‘name’, ‘start_sec’, ‘duration_sec’, ‘channels’]
|
|
float |
— |
Percentage to extend (+) or shrink (−) on each side.
For example:
50.0 → start moves 50% earlier, end moves 50% later
-20.0 → start moves 20% later, end moves 20% earlier
|
Outputs
Output |
Format |
Description |
|---|---|---|
|
pandas.DataFrame |
Copy of events with updated ‘start_sec’ and ‘duration_sec’. |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Extend 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.