Skip to content

Commit

Permalink
Merge pull request #2716 from effigies/enh/versioned_workflow_dir
Browse files Browse the repository at this point in the history
ENH: Add major/minor versions to base workflow name
  • Loading branch information
oesteban authored Mar 3, 2022
2 parents 403e4c3 + 6aca8d8 commit f1a9f2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fmriprep/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import os
from copy import deepcopy

from packaging.version import Version

from nipype.pipeline import engine as pe
from nipype.interfaces import utility as niu

Expand Down Expand Up @@ -66,7 +68,9 @@ def init_fmriprep_wf():
from niworkflows.engine.workflows import LiterateWorkflow as Workflow
from niworkflows.interfaces.bids import BIDSFreeSurferDir

fmriprep_wf = Workflow(name='fmriprep_wf')
ver = Version(config.environment.version)

fmriprep_wf = Workflow(name=f'fmriprep_{ver.major}_{ver.minor}_wf')
fmriprep_wf.base_dir = config.execution.work_dir

freesurfer = config.workflow.run_reconall
Expand Down

0 comments on commit f1a9f2a

Please sign in to comment.