<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> import scot <EOL> import scotdata . motorimagery as midata <EOL> raweeg = midata . eeg . T <EOL> triggers = midata . triggers <EOL> classes = midata . classes <EOL> fs = midata . samplerate <EOL> locs = midata . locations <EOL> np . random . seed ( <NUM_LIT> ) <EOL> data = scot . datatools . cut_segments ( raweeg , triggers , <NUM_LIT:3> * fs , <NUM_LIT:4> * fs ) <EOL> ws = scot . Workspace ( { '<STR_LIT>' : <NUM_LIT:30> } , reducedim = <NUM_LIT:4> , fs = fs , locations = locs ) <EOL> ws . plot_f_range = [ <NUM_LIT:0> , <NUM_LIT:30> ] <EOL> ws . plot_diagonal = '<STR_LIT:S>' <EOL> ws . plot_outside_topo = True <EOL> ws . set_data ( data , classes ) <EOL> ws . do_mvarica ( ) <EOL> fig1 = ws . plot_connectivity_topos ( ) <EOL> ws . set_used_labels ( [ '<STR_LIT>' ] ) <EOL> ws . fit_var ( ) <EOL> ws . get_connectivity ( '<STR_LIT>' , fig1 ) <EOL> ws . set_used_labels ( [ '<STR_LIT>' ] ) <EOL> ws . fit_var ( ) <EOL> ws . get_connectivity ( '<STR_LIT>' , fig1 ) <EOL> fig1 . suptitle ( '<STR_LIT>' ) <EOL> ws . set_data ( data , classes ) <EOL> ws . do_cspvarica ( ) <EOL> fig2 = ws . plot_connectivity_topos ( ) <EOL> ws . set_used_labels ( [ '<STR_LIT>' ] ) <EOL> ws . fit_var ( ) <EOL> ws . get_connectivity ( '<STR_LIT>' , fig2 ) <EOL> ws . set_used_labels ( [ '<STR_LIT>' ] ) <EOL> ws . fit_var ( ) <EOL> ws . get_connectivity ( '<STR_LIT>' , fig2 ) <EOL> fig2 . suptitle ( '<STR_LIT>' ) <EOL> ws . show_plots ( ) </s>
