Module Expr Str Import alias identifier Import alias identifier Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod NameLoad Num keyword NameLoad Expr Call AttributeLoad NameLoad attr Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Num Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str Str Num Num Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore NameLoad Assign NameStore Call NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad keyword Num keyword Num attr NameLoad keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr comprehension NameStore NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad keyword Num Assign NameStore BinOpAdd NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword Str keyword NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Num Assign NameStore BinOpDiv Num BinOpPow NameLoad Num Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str
N/A N/A 
==========================================
From raw data to dSPM on SPM Faces dataset
==========================================

Runs a full pipeline using MNE-Python:

    - artifact removal
    - averaging Epochs
    - forward model computation
    - source reconstruction using dSPM on the contrast : "faces - scrambled"

.. note:: This example does quite a bit of processing, so even on a
          fast machine it can take several minutes to complete.
 N/A os.path op N/A matplotlib.pyplot plt N/A mne mne.datasets spm_face mne.preprocessing ICA create_eog_epochs mne io mne.minimum_norm make_inverse_operator apply_inverse N/A __doc__ N/A data_path N/A N/A spm_face data_path N/A subjects_dir N/A data_path /subjects N/A raw_fname N/A data_path /MEG/spm/SPM_CTF_MEG_example_faces%d_3D.ds N/A raw N/A N/A io read_raw_ctf N/A raw_fname 1 preload True N/A N/A N/A raw resample 120.0 npad auto N/A picks N/A N/A mne pick_types N/A raw info meg True exclude bads N/A N/A N/A raw filter 1 30 method iir N/A events N/A N/A mne find_events raw stim_channel UPPT001 N/A N/A N/A N/A mne viz plot_events events N/A N/A raw info N/A sfreq N/A event_ids N/A faces scrambled 1 2 N/A N/A tmin tmax N/A -0.2 0.6 N/A baseline None N/A reject N/A dict mag 5e-12 N/A epochs N/A N/A mne Epochs raw events event_ids tmin tmax picks picks baseline baseline preload True reject reject N/A ica N/A N/A N/A ICA n_components 0.95 random_state 0 fit raw decim 1 reject reject N/A eog_epochs N/A create_eog_epochs raw ch_name MRT31-2908 reject reject N/A N/A eog_inds eog_scores N/A N/A ica find_bads_eog eog_epochs ch_name MRT31-2908 N/A N/A N/A ica plot_scores eog_scores eog_inds N/A N/A N/A ica plot_components eog_inds N/A N/A ica exclude N/A eog_inds N/A 1 N/A N/A N/A ica plot_overlay N/A N/A eog_epochs average N/A N/A N/A ica apply epochs N/A evoked N/A N/A N/A N/A epochs N/A k average N/A k event_ids N/A contrast N/A N/A evoked N/A 1 N/A evoked N/A 0 N/A N/A N/A evoked append contrast N/A e evoked N/A N/A N/A N/A e plot ylim N/A dict mag N/A -400 400 N/A N/A N/A plt show N/A noise_cov N/A N/A mne compute_covariance epochs tmax 0 method shrunk N/A trans_fname N/A data_path /MEG/spm/SPM_CTF_MEG_example_faces1_3D_raw-trans.fif N/A maps N/A N/A mne make_field_map N/A evoked N/A 0 trans_fname subject spm subjects_dir subjects_dir n_jobs 1 N/A N/A N/A N/A evoked N/A 0 plot_field maps time 0.17 N/A src_fname N/A data_path /subjects/spm/bem/spm-oct-6-src.fif N/A N/A N/A N/A op isfile src_fname N/A N/A src N/A N/A mne setup_source_space spm src_fname spacing oct6 subjects_dir subjects_dir overwrite True N/A N/A src N/A N/A mne read_source_spaces src_fname N/A bem N/A data_path /subjects/spm/bem/spm-5120-5120-5120-bem-sol.fif N/A forward N/A N/A mne make_forward_solution N/A contrast info trans_fname src bem N/A forward N/A N/A mne convert_forward_solution forward surf_ori True N/A snr 3.0 N/A lambda2 N/A 1.0 N/A snr 2 N/A method dSPM N/A inverse_operator N/A make_inverse_operator N/A contrast info forward noise_cov loose 0.2 depth 0.8 N/A stc N/A apply_inverse contrast inverse_operator lambda2 method pick_ori None N/A brain N/A N/A stc plot hemi both subjects_dir subjects_dir N/A N/A N/A brain set_time 170.0 N/A N/A N/A brain show_view ventral