-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathincludeDeps.m
48 lines (40 loc) · 1.12 KB
/
includeDeps.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%% Checking if need run file again
global included
if ~isempty(included)
return;
end
%% Loading configuration
try
local_params
catch e
config.vendors_dir = 'vendors';
end
%% Checking config.vendors_dir
[~, config.vendors_dir] = fileattrib( config.vendors_dir );
if ~( config.vendors_dir(1).directory )
error(['config.vendors_dir = ' config.vendors_dir '\n Invalid directory.']);
else
config.vendors_dir = config.vendors_dir(1).Name;
end
%% Including component matlab-utils
run( fullfile(config.vendors_dir, 'matlab-utils/libsetup.m'));
%% Primeiro os vendors, para poderem ser sobrescritos pela aplica��o
utils.path.includeSubdirs({
'vendors/eeglab-14.1'
'vendors/cosmomvpa'
'vendors/bcilab'
'src'
});
%% Preparing eeglab
if ~exist('eeglabUpdater', 'var')
eeglab;
% Installing plugin to read Brain Vision signal
if( ~exist( 'pop_loadbv' ) )
plugin_install('https://github.com/widmann/bva-io/archive/v1.5.14.zip', 'bva-io', '1.5.14');
eeglab;
end
end
close all;
% Preparing CoSMoMVPA
%cosmo_set_path;
included = 1;