Skip to content

Commit

Permalink
Merge pull request #353 from mgxd/fix/templateflow-issue
Browse files Browse the repository at this point in the history
FIX: Avoid retrieving multiple templates from latest TF
  • Loading branch information
mgxd authored Mar 28, 2024
2 parents 653491e + e13235f commit 7b1e91d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion nibabies/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,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.nibabies_dir / "desc-aseg_dseg.tsv"))
_copy_any(dseg_tsv, str(config.execution.nibabies_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 @@ -36,7 +36,7 @@ dependencies = [
"smriprep ~= 0.12.1",
# "smriprep @ git+https://github.com/nipreps/smriprep.git@master",
"tedana >= 0.0.12",
"templateflow >= 0.6",
"templateflow >= 24.2.0",
"toml",
]
dynamic = ["version"]
Expand Down

0 comments on commit 7b1e91d

Please sign in to comment.