Skip to content

Commit f60c0f1

Browse files
authored
Merge branch 'master' into enh/fs_long
2 parents d6e5894 + c72116a commit f60c0f1

File tree

6 files changed

+27
-8
lines changed

6 files changed

+27
-8
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
version: 2
44
updates:
5-
65
- package-ecosystem: "github-actions"
76
directory: "/"
87
schedule:
98
# Check for updates to GitHub Actions every week
109
interval: "weekly"
10+
groups:
11+
actions-infrastructure:
12+
patterns:
13+
- "actions/*"

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
run: |
3636
if [[ -z "$COMMIT_MSG" ]]; then
3737
COMMIT_MSG=$(git show -s --format=%s)
38+
else
39+
COMMIT_MSG=$(echo $COMMIT_MSG | head -n 1)
3840
fi
3941
echo $COMMIT_MSG
4042
echo "commit_message=$COMMIT_MSG" >> $GITHUB_OUTPUT
@@ -55,7 +57,7 @@ jobs:
5557
run: pipx run build
5658
- name: Check distributions
5759
run: pipx run twine check dist/*
58-
- uses: actions/upload-artifact@v3
60+
- uses: actions/upload-artifact@v4
5961
with:
6062
name: dist
6163
path: dist/
@@ -77,12 +79,13 @@ jobs:
7779

7880
env:
7981
INSTALL_TYPE: ${{ matrix.install }}
82+
FSLOUTPUTTYPE: NIFTI_GZ
8083

8184
steps:
8285
- uses: actions/checkout@v4
8386
if: matrix.install == 'repo' || matrix.install == 'editable'
8487
- name: Fetch packages
85-
uses: actions/download-artifact@v3
88+
uses: actions/download-artifact@v4
8689
with:
8790
name: dist
8891
path: dist/

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"packaging",
3131
"pybids >= 0.11.1",
3232
"pyyaml",
33-
"templateflow >= 0.6",
33+
"templateflow >= 24.1",
3434
]
3535
dynamic = ["version"]
3636

@@ -115,8 +115,11 @@ per-file-ignores = [
115115
]
116116

117117
[tool.pytest.ini_options]
118+
minversion = "7"
119+
log_cli_level = "INFO"
120+
xfail_strict = true
118121
norecursedirs = [".git"]
119-
addopts = "-svx --doctest-modules"
122+
addopts = ["-svx", "--doctest-modules", "-ra", "--strict-config", "--strict-markers"]
120123
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
121124
env = "PYTHONHASHSEED=0"
122125
filterwarnings = ["ignore::DeprecationWarning"]
@@ -163,7 +166,7 @@ extend-select = [
163166
"PT",
164167
"Q",
165168
]
166-
extend-ignore = [
169+
ignore = [
167170
"S311", # We are not using random for cryptographic purposes
168171
"ISC001",
169172
"S603",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ sqlalchemy==2.0.28
188188
# via pybids
189189
svgutils==0.3.4
190190
# via niworkflows
191-
templateflow==24.0.0
191+
templateflow==24.2.0
192192
# via niworkflows
193193
threadpoolctl==3.3.0
194194
# via scikit-learn

smriprep/cli/run.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,16 @@ def _warn_redirect(message, category, filename, lineno, file=None, line=None):
420420
from niworkflows.utils.misc import _copy_any
421421
from templateflow import api
422422

423-
dseg_tsv = str(api.get('fsaverage', suffix='dseg', extension=['.tsv']))
423+
dseg_tsv = str(
424+
api.get(
425+
'fsaverage',
426+
hemi=None,
427+
atlas=None,
428+
segmentation='aparc',
429+
suffix='dseg',
430+
extension=['.tsv'],
431+
)
432+
)
424433
_copy_any(dseg_tsv, str(Path(output_dir) / 'smriprep' / 'desc-aseg_dseg.tsv'))
425434
_copy_any(dseg_tsv, str(Path(output_dir) / 'smriprep' / 'desc-aparcaseg_dseg.tsv'))
426435
logger.log(25, 'sMRIPrep finished without errors')

0 commit comments

Comments
 (0)