PSGWriter
Module name: PSGWriter
Package: CEAMSModules 7.4.0
Version: 2.2.0
Overview
Write a PSG file. The PSG signals are always in a file separated from the annotations file containning the events.
Note
The setting (bool flag) “overwrite_signals” allows to overwrite the signal and “overwrite_events” allows to overwrite the events.
Note
If input_filename and output_filename are the same, the PSG file will be overwritten when overwrite_signals is True and the annotations file will be overwritten when overwrite_events is True.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
String |
— |
The name of the input file |
|
String |
— |
The name of the output file to write. |
|
List of SignalModel |
— |
Signals to write to a file |
|
pandas DataFrame columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’] |
— |
New events to write to a file. |
|
list of tuple of n events to remove. |
— |
Events group and name to remove from the file.
ex. [(‘group1’, ‘name1’), (‘group2’, ‘name2’)]
|
|
bool |
True |
True to overwrite old events with the same group and name as the new ones. |
|
bool |
False |
True to overwrite signals that’s been modified |
Outputs
This module has no outputs.
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find PSGWriter under the Files I/O 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.