1- % (C) Copyright 2021 CPP_SPM developers
2-
31function test_suite = test_setBatchLesionSegmentation % #ok<*STOUT>
2+ % (C) Copyright 2021 CPP_SPM developers
3+
44 try % assignment of 'localfunctions' is necessary in Matlab >= 2016
55 test_functions = localfunctions(); % #ok<*NASGU>
66 catch % no problem; early Matlab versions can use initTestSuite fine
@@ -14,29 +14,34 @@ function test_setBatchLesionSegmentation_basic()
1414
1515 opt = setOptions(' MoAE' , subLabel , ' useRaw' , true );
1616
17- if not(isfield( opt . toolbox , ' ALI ' ))
17+ if isGithubCi
1818 return
19+ else
20+ opt = setFields(opt , ALI_my_defaults());
1921 end
2022
2123 [BIDS , opt ] = getData(opt , opt .dir .input );
2224
2325 matlabbatch = {};
2426 matlabbatch = setBatchLesionSegmentation(matlabbatch , BIDS , opt , subLabel );
2527
26- unified_segmentation.step1data{1 } = fullfile(getMoaeDir(), ' inputs' , ' raw' , ...
28+ unified_segmentation.step1data{1 } = fullfile(getMoaeDir(), ...
29+ ' inputs' , ...
30+ ' raw' , ...
2731 [' sub-' subLabel ], ...
2832 ' anat' , ...
2933 ' sub-01_T1w.nii' );
3034 unified_segmentation.step1prior = {fullfile(spm(' dir' ), ...
31- ' toolbox' , ' ALI' , ...
35+ ' toolbox' , ...
36+ ' ALI' , ...
3237 ' Priors_extraClass' , ...
3338 ' wc4prior0.nii' )};
3439 unified_segmentation.step1niti = 2 ;
3540 unified_segmentation.step1thr_prob = 0.3330 ;
3641 unified_segmentation.step1thr_size = 0.8000 ;
3742 unified_segmentation.step1coregister = 1 ;
3843 unified_segmentation.step1mask = {' ' };
39- unified_segmentation.step1vox = 1 ;
44+ unified_segmentation.step1vox = 2 ;
4045 unified_segmentation.step1fwhm = [8 8 8 ];
4146
4247 assertEqual(matlabbatch{1 }.spm.tools.ali.unified_segmentation, ...
0 commit comments