File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1- function init_spm_2_bids
1+ function init_spm_2_bids( add_dev )
22 %
33 % 1 - Check if version requirements
44 % are satisfied and the packages are
1515 %
1616 % (C) Copyright 2021 spm_2_bids developers
1717
18+ if nargin < 1
19+ add_dev = false ;
20+ end
21+
1822 OCTAVE_VER = ' 4.0.3' ;
1923 MATLAB_VER = ' 8.6.0' ;
2024
5357
5458 end
5559
56- add_dependencies();
60+ add_dependencies(add_dev );
61+
62+ pth = fileparts(mfilename(' fullpath' ));
63+ addpath(genpath(fullfile(pth , ' src' )));
5764
5865 disp(' Correct matlab/octave verions and added to the path!' );
5966
@@ -90,11 +97,12 @@ function try_install_from_forge(package_name)
9097
9198end
9299
93- function add_dependencies()
100+ function add_dependencies(add_dev )
94101
95- pth = fileparts(mfilename(' fullpath' ));
96- addpath(fullfile(pth , ' lib' , ' bids-matlab' ));
97- addpath(fullfile(pth , ' tests' , ' utils' ));
98- addpath(genpath(fullfile(pth , ' src' )));
102+ if add_dev
103+ pth = fileparts(mfilename(' fullpath' ));
104+ addpath(fullfile(pth , ' lib' , ' bids-matlab' ));
105+ addpath(fullfile(pth , ' lib' , ' JSONio' ));
106+ end
99107
100108end
Original file line number Diff line number Diff line change 44
55if isdir(fullfile(thisDir , ' lib' , ' bids-matlab' ))
66 addpath(fullfile(thisDir , ' lib' , ' bids-matlab' ));
7+ addpath(fullfile(thisDir , ' lib' , ' JSONio' ));
78end
89
910folderToCover = fullfile(thisDir , ' src' );
You can’t perform that action at this time.
0 commit comments