Skip to content

Commit

Permalink
FIX: Require recent templateflow, select correct aparc dseg.tsv (#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard authored Mar 22, 2024
1 parent 6f8c965 commit 04cc9a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 10 additions & 1 deletion fmriprep/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,16 @@ def main():
from niworkflows.utils.misc import _copy_any
from templateflow import api

dseg_tsv = str(api.get('fsaverage', suffix='dseg', extension=['.tsv']))
dseg_tsv = str(
api.get(
'fsaverage',
hemi=None,
atlas=None,
segmentation='aparc',
suffix='dseg',
extension=['.tsv'],
)
)
_copy_any(dseg_tsv, str(config.execution.fmriprep_dir / 'desc-aseg_dseg.tsv'))
_copy_any(dseg_tsv, str(config.execution.fmriprep_dir / 'desc-aparcaseg_dseg.tsv'))
errno = 0
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies = [
"sdcflows @ git+https://github.com/nipreps/sdcflows.git@master",
"smriprep @ git+https://github.com/nipreps/smriprep.git@master",
"tedana >= 23.0.2",
"templateflow >= 23.0.0",
"templateflow >= 24.1.0",
"toml",
"codecarbon",
"APScheduler",
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,8 @@ tedana==23.0.2
# via
# fmriprep
# fmriprep (pyproject.toml)
templateflow==23.1.0
templateflow==24.2.0
# via
# fmriprep
# fmriprep (pyproject.toml)
# nireports
# niworkflows
# sdcflows
Expand Down

0 comments on commit 04cc9a2

Please sign in to comment.