Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test and lint
  • Loading branch information
Remi-Gau committed Sep 9, 2022
commit b601db608aa49e9d92fa493f40d51235c22a7a1f
2 changes: 1 addition & 1 deletion cpp_bids.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function cpp_bids(varargin)
defaultAction = 'init';

addOptional(p, 'action', defaultAction, @ischar);
addOptional(p, 'verbose', true);
addParameter(p, 'verbose', true);

parse(p, varargin{:});

Expand Down
3 changes: 2 additions & 1 deletion runTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ function runTests()
cd(thisPath);
fprintf('\nHome is %s\n', getenv('HOME'));

warning('OFF');
warning off;
more off;

addpath(fullfile(thisPath, 'lib', 'JSONio'));
addpath(fullfile(thisPath, 'lib', 'bids-matlab'));
Expand Down
2 changes: 1 addition & 1 deletion src/checkCFG.m
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

checkCppBidsDependencies(cfg);

fieldsToSet.verbose = 0;
fieldsToSet.verbose = false;

fieldsToSet.useGUI = false;

Expand Down
6 changes: 3 additions & 3 deletions tests/test_checkCFG.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function test_checkCfgDefault()

%% set up
cfg.dir.output = fullfile(fileparts(mfilename('fullpath')), '..', 'output');
cfg.verbose = 0;
cfg.verbose = false;
cfg = checkCFG(cfg);

%% create test data
Expand All @@ -32,7 +32,7 @@ function test_checkCfgBasic()
%% set up
outputDir = fullfile(fileparts(mfilename('fullpath')), '..', 'output');

cfg.verbose = 0;
cfg.verbose = false;

cfg.subject.subjectNb = 1;
cfg.subject.runNb = 1;
Expand Down Expand Up @@ -109,7 +109,7 @@ function test_checkCfgBasic()
expected.subject.subjectNb = [];
expected.subject.ask = {'grp'; 'ses'; 'run'};

expected.verbose = 0;
expected.verbose = false;

expected.useGUI = false;

Expand Down
2 changes: 1 addition & 1 deletion tests/utils/globalTestSetUp.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%
% (C) Copyright 2020 CPP_BIDS developers

cfg.verbose = 0;
cfg.verbose = false;
cfg.subject.subjectNb = 1;
cfg.subject.runNb = 1;
cfg.task.name = 'test task';
Expand Down