<s> """<STR_LIT>""" <EOL> from __future__ import print_function <EOL> import mne <EOL> import os . path as op <EOL> from matplotlib import pyplot as plt <EOL> data_path = op . join ( mne . datasets . sample . data_path ( ) , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ) <EOL> raw = mne . io . RawFIF ( data_path , preload = True , verbose = False ) <EOL> print ( '<STR_LIT>' , raw . info [ '<STR_LIT>' ] , '<STR_LIT>' ) <EOL> print ( '<STR_LIT>' , raw . _data . shape ) <EOL> print ( '<STR_LIT>' , raw . _data . shape ) <EOL> array_data = raw . _data [ <NUM_LIT:0> , : <NUM_LIT:1000> ] <EOL> _ = plt . plot ( array_data ) <EOL> sfreq = raw . info [ '<STR_LIT>' ] <EOL> data , times = raw [ : <NUM_LIT:5> , int ( sfreq * <NUM_LIT:1> ) : int ( sfreq * <NUM_LIT:3> ) ] <EOL> _ = plt . plot ( times , data . T ) <EOL> _ = plt . title ( '<STR_LIT>' ) <EOL> meg_only = raw . copy ( ) . pick_types ( meg = True ) <EOL> eeg_only = raw . copy ( ) . pick_types ( meg = False , eeg = True ) <EOL> grad_only = raw . copy ( ) . pick_types ( meg = '<STR_LIT>' ) <EOL> pick_chans = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> specific_chans = raw . copy ( ) . pick_channels ( pick_chans ) <EOL> print ( meg_only , eeg_only , grad_only , specific_chans , sep = '<STR_LIT:\n>' ) <EOL> f , ( a1 , a2 ) = plt . subplots ( <NUM_LIT:2> , <NUM_LIT:1> ) <EOL> eeg , times = eeg_only [ <NUM_LIT:0> , : int ( sfreq * <NUM_LIT:2> ) ] <EOL> meg , times = meg_only [ <NUM_LIT:0> , : int ( sfreq * <NUM_LIT:2> ) ] <EOL> a1 . plot ( times , meg [ <NUM_LIT:0> ] ) <EOL> a2 . plot ( times , eeg [ <NUM_LIT:0> ] ) <EOL> del eeg , meg , meg_only , grad_only , eeg_only , data , specific_chans <EOL> raw = raw . crop ( <NUM_LIT:0> , <NUM_LIT:50> ) <EOL> print ( '<STR_LIT>' , raw . times . min ( ) , '<STR_LIT>' , raw . times . max ( ) , '<STR_LIT:s>' ) <EOL> nchan = raw . info [ '<STR_LIT>' ] <EOL> raw = raw . drop_channels ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> print ( '<STR_LIT>' , nchan , '<STR_LIT:to>' , raw . info [ '<STR_LIT>' ] ) <EOL> raw1 = raw . copy ( ) . crop ( <NUM_LIT:0> , <NUM_LIT:10> ) <EOL> raw2 = raw . copy ( ) . crop ( <NUM_LIT:10> , <NUM_LIT:20> ) <EOL> raw3 = raw . copy ( ) . crop ( <NUM_LIT:20> , <NUM_LIT> ) <EOL> raw1 . append ( [ raw2 , raw3 ] ) <EOL> print ( '<STR_LIT>' , raw1 . times . min ( ) , '<STR_LIT>' , raw1 . times . max ( ) , '<STR_LIT:s>' ) </s>
