%% script to test the tutorials to be ran in Marseille.

% set up the paths
restoredefaultpath;

curr_dir = pwd;
base_dir = curr_dir(1:end-5);
ft_dir   = fullfile(base_dir,'fieldtrip-20161024');
test_dir = fullfile(base_dir,'test');

cd(ft_dir);
ft_defaults;
global ft_default;
ft_default.checkconfig = 'loose';

addpath(test_dir);

test_tutorial_networkanalysis_new(fullfile(base_dir,'SubjectRest'), fullfile(base_dir,'networkanalysis'));
test_tutorial_connectivityextended(fullfile(base_dir,'beamformer_extended'));
test_tutorial_coherence(fullfile(base_dir), fullfile(base_dir,'coherence'));
test_tutorial_connectivity;
test_tutorial_connectivity2;
test_tutorial_connectivity3(fullfile(base_dir,'connectivity'));

