AddEventMarker¶
Find trials matching a particular set of event markers, and add a new marker with a time stamp that matches one of those events.
Such new markers can then be used for purposes such as segmentation to events where the surrounding trial satisfies certain desired conditions etc. The node uses regular expressions, a very powerful language for string matching to identify which markers comprise a trial of interest. See the below link for more details. To add markers matching different criteria (e.g., 'left', and 'right'), use multiple copies of this node in succession. More Info... Version 1.2.3
Ports/Properties¶
data¶
Data to process.
stream¶
Name of stream containing markers to use for trial selection. Wildcards are supported, i.e. mystream* will select the first stream whose name starts with mystream. If unspecified, the first stream will be used.
trial_criteria¶
List of marker patterns that constitute a matching trial. When a trial is found, the event markers in the trial will be matched against this list in order. If all conditions are true, a new event marker will be added to the trial. These conditions are assumed to be regular expressions.
trial_start¶
The event marker that indicates the start of a trial. Can be a regular expression.
trial_end¶
The event marker that indicates the end of a trial, used to move to the next trial. Can be a regular expression.
event_to_match¶
The event within a matching trial that the new event marker should be time-locked to. This should be one of the items in the 'Trial Criteria' parameter. When a matching trial is found a new event marker will be written with the same time stamp as this event marker.
match_first_event_only¶
If there are multiple event markers matching the event_to_match parameter, a new event marker will only be created for the first one.
new_event_marker¶
The name of the new event marker to be added to matching trials.
full_criteria¶
A dictionary containing a set of criteria for adding markers, where the keys are the names of properties of this node (i.e ., trial_criteria, trial_start, etc.) and the values are the values for those properties (the same values you would pass if you were setting those properties directly. This provides a convenient way to programmatically pass in a collection of settings at once, to this single property, rather than having to set each property. If set, this will take precedence over all the other properties.
verbose¶
Verbose debugging output.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.