Skip to content

Commit

Permalink
FIX: Avoid retrieving multiple templates from latest TF
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Mar 28, 2024
1 parent 653491e commit e13235f
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(

Check warning on line 128 in nibabies/cli/run.py

View check run for this annotation

Codecov / codecov/patch

nibabies/cli/run.py#L128

Added line #L128 was not covered by tests
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 e13235f

Please sign in to comment.