Skip to content

Commit d6809c9

Browse files
committed
fix test pollution
1 parent 8ac86e9 commit d6809c9

File tree

11 files changed

+11
-36
lines changed

11 files changed

+11
-36
lines changed

src/batches/preproc/setBatchCreateVDMs.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
metadata = bids.query(BIDS, 'metadata', filter);
5656

57-
if strfind(metadata.IntendedFor, opt.taskName)
57+
if any(strfind(metadata.IntendedFor, opt.taskName))
5858

5959
try
6060
[echotimes, isEPI, totReadTime, blipDir] = getMetadataForVDM(BIDS, filter);

src/messages/createUnorderedList.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
if ~iscell(content)
4141
content = {content};
4242
end
43+
44+
for j = 1:numel(content)
45+
if isnumeric(content{j})
46+
content{j} = num2str(content{j});
47+
end
48+
end
49+
4350
output = [output prefix fields{i} ': {' strjoin(content, ', ') '}'];
4451
end
4552

tests/tests_batches/preproc/test_setBatchSmoothConImages.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
function test_setBatchSmoothConImages_basic()
1212

13-
% createDummyData();
14-
1513
opt = setOptions('vismotion', {'01', 'blind01'}, 'pipelineType', 'stats');
1614

1715
opt.fwhm.contrast = 6;

tests/tests_batches/stats/test_setBatchSubjectLevelResults.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ function test_setBatchSubjectLevelResults_error_no_matching_contrast()
8989

9090
function [subLabel, opt, result] = setUp(task, contrastName)
9191

92-
% createDummyData();
93-
9492
iCon = 1;
9593

9694
subLabel = '01';

tests/tests_batches/test_setBatchMeanAnatAndMask.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
function test_setBatchMeanAnatAndMask_basic()
1212

13-
% createDummyData();
14-
1513
opt = setOptions('vismotion', {'01', 'ctrl01'}, 'pipelinetype', 'stats');
1614

1715
matlabbatch = {};

tests/tests_workflows/stats/test_bidsFFX.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ function test_bidsFFX_skip_subject_no_data()
7070

7171
function test_bidsFFX_contrasts_select_node()
7272

73-
% createDummyData();
74-
7573
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
7674
opt.stc.skip = 1;
7775

@@ -84,8 +82,6 @@ function test_bidsFFX_contrasts_select_node()
8482

8583
function test_bidsFFX_contrasts()
8684

87-
% createDummyData();
88-
8985
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
9086
opt.stc.skip = 1;
9187

@@ -129,6 +125,8 @@ function test_bidsFFX_fmriprep_no_smoothing()
129125

130126
cleanUp(opt.dir.preproc);
131127

128+
createDummyData();
129+
132130
end
133131

134132
function test_bidsFFX_mni()
@@ -157,6 +155,6 @@ function test_bidsFFX_mni()
157155

158156
end
159157

160-
% createDummyData();
158+
createDummyData();
161159

162160
end

tests/tests_workflows/stats/test_bidsModelSelection.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
function test_bidsModelSelection_basic()
1616

17-
% createDummyData();
18-
1917
% GIVEN
2018
opt = setOptions('vislocalizer');
2119
opt = rmfield(opt, 'taskName');
@@ -45,8 +43,6 @@ function test_bidsModelSelection_basic()
4543

4644
function test_bidsModelSelection_actions()
4745

48-
% createDummyData();
49-
5046
% GIVEN
5147
opt = setOptions('vislocalizer');
5248
opt = rmfield(opt, 'taskName');

tests/tests_workflows/stats/test_bidsResults.m

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
function test_bidsResults_filter_by_nodeName()
1212

13-
% createDummyData();
14-
1513
%% GIVEN
1614
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
1715

@@ -46,8 +44,6 @@ function test_bidsResults_filter_by_nodeName_empty()
4644

4745
function test_bidsResults_too_many_backgrounds()
4846

49-
% createDummyData();
50-
5147
%% GIVEN
5248
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
5349

@@ -77,8 +73,6 @@ function test_bidsResults_too_many_backgrounds()
7773

7874
function test_bidsResults_background_for_subject()
7975

80-
% createDummyData();
81-
8276
%% GIVEN
8377
opt = setOptions('vislocalizer', {'01', 'ctrl01', 'blind01'}, 'pipelineType', 'stats');
8478

@@ -114,8 +108,6 @@ function test_bidsResults_background_for_subject()
114108

115109
function test_bidsResults_no_background_for_montage()
116110

117-
% createDummyData();
118-
119111
%% GIVEN
120112
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
121113

@@ -148,8 +140,6 @@ function test_bidsResults_dataset_lvl()
148140
% TODO requires updating dummy dataset
149141
return
150142

151-
% createDummyData();
152-
153143
%% GIVEN
154144
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
155145

@@ -168,8 +158,6 @@ function test_bidsResults_dataset_lvl()
168158

169159
function test_bidsResults_subject_lvl_regex()
170160

171-
% createDummyData();
172-
173161
%% GIVEN
174162
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
175163

@@ -208,8 +196,6 @@ function test_bidsResults_error_missing_node()
208196

209197
function test_bidsResults_subject_lvl()
210198

211-
% createDummyData();
212-
213199
%% GIVEN
214200
opt = setOptions('vislocalizer', '', 'pipelineType', 'stats');
215201

tests/tests_workflows/test_bidsChangeSuffix.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
function test_bidsChangeSuffix_basic()
1212

13-
% createDummyData();
14-
1513
dataset = 'ds001';
1614

1715
dataDir = getBidsExample('ds001');

tests/tests_workflows/test_bidsRename.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ function test_bidsRename_basic()
1414
% - SpatialReference probably not needed for space individual if anat modality
1515
% - transfer of Skullstripped true, if sources has it?
1616

17-
% createDummyData();
18-
1917
opt = setOptions('MoAE-preproc');
2018

2119
% move test data into temp directory to test renaming

0 commit comments

Comments
 (0)