@@ -13,18 +13,18 @@ function bidspm(varargin)
1313
1414 defaultAction = ' init' ;
1515
16- isEmptyOrCellstr = @(x ) isempty(x ) || iscellstr (x );
16+ isEmptyOrCellstr = @(x ) isempty(x ) || isstring (x );
1717 isFileOrStruct = @(x ) isstruct(x ) || exist(x , ' file' ) == 2 ;
1818
1919 isLogical = @(x ) islogial(x ) && numel(x ) == 1 ;
2020 isChar = @(x ) ischar(x );
2121 isPositiveScalar = @(x ) isnumeric(x ) && numel(x ) == 1 && x >= 0 ;
2222
23- isDir = @(x ) isdir (x );
23+ isFolder = @(x ) isfolder (x );
2424
25- isCellStr = @(x ) iscellstr (x );
25+ isCellStr = @(x ) isstring (x );
2626
27- isLowLevelActionOrDir = @(x ) (ismember(x , low_level_actions()) || isdir (x ));
27+ isLowLevelActionOrDir = @(x ) (ismember(x , low_level_actions()) || isfolder (x ));
2828
2929 addOptional(args , ' bids_dir' , pwd , isLowLevelActionOrDir );
3030
@@ -48,7 +48,7 @@ function bidspm(varargin)
4848 addParameter(args , ' ignore' , {}, isEmptyOrCellstr );
4949
5050 % stats only
51- addParameter(args , ' preproc_dir' , pwd , isDir );
51+ addParameter(args , ' preproc_dir' , pwd , isFolder );
5252 addParameter(args , ' model_file' , struct([]), isFileOrStruct );
5353 addParameter(args , ' roi_based' , false , isLogical );
5454 % group level stats only
@@ -384,7 +384,7 @@ function initBidspm(dev)
384384 opt.verbosity = 2 ;
385385 opt.msg.color = ' ' ;
386386
387- octaveVersion = ' 4.0.3 ' ;
387+ octaveVersion = ' 6. 4.0' ;
388388 matlabVersion = ' 8.6.0' ;
389389
390390 % octave packages
@@ -547,6 +547,11 @@ function run_tests()
547547
548548 bidspm(' action' , ' dev' );
549549
550+ % to reduce noise in the output
551+ if isOctave
552+ warning(' off' , ' setGraphicWindow:noGraphicWindow' );
553+ end
554+
550555 cd(fileparts(mfilename(' fullpath' )));
551556
552557 if isGithubCi
@@ -566,8 +571,7 @@ function run_tests()
566571 folderToCover = fullfile(pwd , ' src' );
567572 testFolder = fullfile(pwd , ' tests' , subfolder );
568573
569- success = moxunit_runtests( ...
570- testFolder , ...
574+ success = moxunit_runtests(testFolder , ...
571575 ' -verbose' , ' -recursive' , ' -with_coverage' , ...
572576 ' -cover' , folderToCover , ...
573577 ' -cover_xml_file' , ' coverage.xml' , ...
0 commit comments