Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Avoid retrieving multiple templates from latest TF #353

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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
Loading