File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ def build_workflow(opts, retval):
480
480
from bids import BIDSLayout
481
481
482
482
from nipype import logging as nlogging , config as ncfg
483
- from niworkflows .utils .bids import collect_participants
483
+ from niworkflows .utils .bids import collect_participants , check_pipeline_version
484
484
from niworkflows .reports import generate_reports
485
485
from ..__about__ import __version__
486
486
from ..workflows .base import init_fmriprep_wf
@@ -520,6 +520,13 @@ def build_workflow(opts, retval):
520
520
retval ['return_code' ] = 1
521
521
return retval
522
522
523
+ # warn if older results exist
524
+ msg = check_pipeline_version (
525
+ __version__ , output_dir / 'fmriprep' / 'dataset_description.json'
526
+ )
527
+ if msg is not None :
528
+ build_log .warning (msg )
529
+
523
530
if bids_dir in work_dir .parents :
524
531
build_log .error (
525
532
'The selected working directory is a subdirectory of the input BIDS folder. '
You can’t perform that action at this time.
0 commit comments