Skip to content

Commit fc6cc8e

Browse files
authored
skip smoothing when running bidspm prepoc in dryRun (#1054)
1 parent 8eae85f commit fc6cc8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bidspm.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,15 @@ function preprocess(args)
288288
bidsSpatialPrepro(opt);
289289
if opt.fwhm.func > 0 && ~opt.anatOnly
290290
opt.query.desc = 'preproc';
291+
if opt.dryRun
292+
msg = ['"dryRun" set to "true", so smoothing will be skipped', ...
293+
' as it requires the output of spatial preprocessing to run.'];
294+
logger('WARNING', msg, ...
295+
'options', opt, ...
296+
'filename', mfilename(), ...
297+
'id', 'skipSmoothingInDryRun');
298+
return
299+
end
291300
bidsSmoothing(opt);
292301
end
293302

0 commit comments

Comments
 (0)