Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore Num Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Print NameLoad Print SubscriptLoad NameLoad Index CompareNotEq NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword TupleLoad NameLoad Num keyword Call NameLoad keyword Num Assign TupleStore NameStore NameStore ListComp Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr comprehension NameStore NameLoad Assign NameStore BinOpMult Num AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr
N/A N/A 
============================================================
Define target events based on time lag, plot evoked response
============================================================

This script shows how to define higher order events based on
time lag between reference and target events. For
illustration, we will put face stimuli presented into two
classes, that is 1) followed by an early button press
(within 590 milliseconds) and followed by a late button
press (later than 590 milliseconds). Finally, we will
visualize the evoked responses to both 'quickly-processed'
and 'slowly-processed' face stimuli.

 N/A mne mne io mne.event define_target_events mne.datasets sample N/A matplotlib.pyplot plt N/A __doc__ N/A data_path N/A N/A sample data_path N/A raw_fname N/A data_path /MEG/sample/sample_audvis_filt-0-40_raw.fif N/A event_fname N/A data_path /MEG/sample/sample_audvis_filt-0-40_raw-eve.fif N/A raw N/A N/A io read_raw_fif raw_fname N/A events N/A N/A mne read_events event_fname N/A include N/A N/A N/A N/A raw info N/A bads N/A EEG 053 N/A picks N/A N/A mne pick_types N/A raw info meg mag eeg False stim False eog True include include exclude bads N/A reference_id 5 N/A target_id 32 N/A sfreq N/A N/A raw info N/A sfreq N/A tmin 0.1 N/A tmax 0.59 N/A new_id 42 N/A fill_na 99 N/A N/A events_ lag N/A define_target_events events reference_id target_id sfreq tmin tmax new_id fill_na N/A events_ N/A N/A lag N/A N/A lag fill_na N/A tmin_ -0.2 N/A tmax_ 0.4 N/A event_id N/A dict early new_id late fill_na N/A epochs N/A N/A mne Epochs raw events_ event_id tmin_ tmax_ picks picks baseline N/A None 0 reject N/A dict mag 4e-12 N/A N/A early late N/A N/A N/A N/A epochs N/A k average N/A k event_id N/A times N/A 1000.0 N/A epochs times N/A title Evoked response followed by %s button press N/A N/A N/A plt clf N/A ax N/A N/A plt subplot 2 1 1 N/A N/A N/A early plot axes ax N/A N/A N/A plt title N/A title late N/A N/A N/A plt ylabel Evoked field (fT) N/A ax N/A N/A plt subplot 2 1 2 N/A N/A N/A late plot axes ax N/A N/A N/A plt title N/A title early N/A N/A N/A plt ylabel Evoked field (fT) N/A N/A N/A plt show