Skip to content

Commit 0cf3dca

Browse files
authored
Merge branch 'master' into nordic
2 parents 0c2c0db + fe6bfa0 commit 0cf3dca

File tree

23 files changed

+167
-136
lines changed

23 files changed

+167
-136
lines changed

.circleci/ds005_partial_fasttrack_outputs.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ sub-01/anat/sub-01_desc-ribbon_mask.json
1414
sub-01/anat/sub-01_desc-ribbon_mask.nii.gz
1515
sub-01/anat/sub-01_hemi-L_desc-preproc_sphere.surf.gii
1616
sub-01/anat/sub-01_hemi-L_desc-preproc_white.surf.gii
17+
sub-01/anat/sub-01_hemi-L_space-fsLR_den-32k_desc-preproc_midthickness.surf.gii
18+
sub-01/anat/sub-01_hemi-L_space-fsLR_den-32k_desc-preproc_pial.surf.gii
19+
sub-01/anat/sub-01_hemi-L_space-fsLR_den-32k_desc-preproc_white.surf.gii
1720
sub-01/anat/sub-01_hemi-L_space-fsLR_desc-msmsulc_sphere.surf.gii
1821
sub-01/anat/sub-01_hemi-L_space-fsLR_desc-reg_sphere.surf.gii
1922
sub-01/anat/sub-01_hemi-L_space-fsaverage_desc-reg_sphere.surf.gii
2023
sub-01/anat/sub-01_hemi-R_desc-preproc_sphere.surf.gii
2124
sub-01/anat/sub-01_hemi-R_desc-preproc_white.surf.gii
25+
sub-01/anat/sub-01_hemi-R_space-fsLR_den-32k_desc-preproc_midthickness.surf.gii
26+
sub-01/anat/sub-01_hemi-R_space-fsLR_den-32k_desc-preproc_pial.surf.gii
27+
sub-01/anat/sub-01_hemi-R_space-fsLR_den-32k_desc-preproc_white.surf.gii
2228
sub-01/anat/sub-01_hemi-R_space-fsLR_desc-msmsulc_sphere.surf.gii
2329
sub-01/anat/sub-01_hemi-R_space-fsLR_desc-reg_sphere.surf.gii
2430
sub-01/anat/sub-01_hemi-R_space-fsaverage_desc-reg_sphere.surf.gii

.circleci/ds005_partial_outputs.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ sub-01/anat/sub-01_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5
2525
sub-01/anat/sub-01_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
2626
sub-01/anat/sub-01_hemi-L_midthickness.surf.gii
2727
sub-01/anat/sub-01_hemi-L_pial.surf.gii
28+
sub-01/anat/sub-01_hemi-L_space-fsLR_den-32k_midthickness.surf.gii
29+
sub-01/anat/sub-01_hemi-L_space-fsLR_den-32k_pial.surf.gii
30+
sub-01/anat/sub-01_hemi-L_space-fsLR_den-32k_white.surf.gii
2831
sub-01/anat/sub-01_hemi-L_space-fsLR_desc-msmsulc_sphere.surf.gii
2932
sub-01/anat/sub-01_hemi-L_space-fsLR_desc-reg_sphere.surf.gii
3033
sub-01/anat/sub-01_hemi-L_space-fsaverage_desc-reg_sphere.surf.gii
@@ -34,6 +37,9 @@ sub-01/anat/sub-01_hemi-L_thickness.shape.gii
3437
sub-01/anat/sub-01_hemi-L_white.surf.gii
3538
sub-01/anat/sub-01_hemi-R_midthickness.surf.gii
3639
sub-01/anat/sub-01_hemi-R_pial.surf.gii
40+
sub-01/anat/sub-01_hemi-R_space-fsLR_den-32k_midthickness.surf.gii
41+
sub-01/anat/sub-01_hemi-R_space-fsLR_den-32k_pial.surf.gii
42+
sub-01/anat/sub-01_hemi-R_space-fsLR_den-32k_white.surf.gii
3743
sub-01/anat/sub-01_hemi-R_space-fsLR_desc-msmsulc_sphere.surf.gii
3844
sub-01/anat/sub-01_hemi-R_space-fsLR_desc-reg_sphere.surf.gii
3945
sub-01/anat/sub-01_hemi-R_space-fsaverage_desc-reg_sphere.surf.gii

.github/workflows/contrib.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
matrix:
3636
os: ['ubuntu-latest']
37-
python-version: ['3.10', '3.11', '3.12']
37+
python-version: ['3.10', '3.11', '3.12', '3.13']
3838
dependencies: ['latest', 'pre']
3939
include:
4040
- os: ubuntu-latest
@@ -57,6 +57,8 @@ jobs:
5757
run: |
5858
sudo apt update
5959
sudo apt install -y --no-install-recommends graphviz
60+
- name: Install the latest version of uv
61+
uses: astral-sh/setup-uv@v5
6062
- name: Set up Python ${{ matrix.python-version }}
6163
uses: actions/setup-python@v5
6264
with:
@@ -65,14 +67,32 @@ jobs:
6567
run: python -c "import sys; print(sys.version)"
6668
- name: Install tox
6769
run: |
68-
python -m pip install --upgrade pip
69-
python -m pip install tox tox-gh-actions
70+
uv tool install --with=tox-uv --with=tox-gh-actions tox
7071
- name: Show tox config
7172
run: tox c
7273
- name: Run tox
7374
run: tox -v --exit-and-dump-after 1200
7475
- uses: codecov/codecov-action@v5
7576
with:
76-
file: coverage.xml
7777
token: ${{ secrets.CODECOV_TOKEN }}
7878
if: ${{ always() }}
79+
80+
checks:
81+
runs-on: "ubuntu-latest"
82+
continue-on-error: true
83+
strategy:
84+
matrix:
85+
check: ["style", "spellcheck"]
86+
87+
steps:
88+
- uses: actions/checkout@v4
89+
with:
90+
persist-credentials: false
91+
- name: Install the latest version of uv
92+
uses: astral-sh/setup-uv@v5
93+
- name: Install tox
94+
run: uv tool install tox --with=tox-uv
95+
- name: Show tox config
96+
run: tox c -e ${{ matrix.check }}
97+
- name: Run check
98+
run: tox -e ${{ matrix.check }}

.maint/paper_author_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _aslist(inlist):
3838
aff_indexes = [
3939
', '.join(
4040
[
41-
'%d' % (affiliations.index(a) + 1)
41+
str(affiliations.index(a) + 1)
4242
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
4343
]
4444
)
@@ -52,7 +52,7 @@ def _aslist(inlist):
5252
file=sys.stderr,
5353
)
5454

55-
print('Authors (%d):' % len(author_matches))
55+
print(f'Authors ({len(author_matches)}):')
5656
print(
5757
'{}.'.format(
5858
'; '.join(

.maint/update_authors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _aslist(value):
259259
aff_indexes = [
260260
', '.join(
261261
[
262-
'%d' % (affiliations.index(a) + 1)
262+
str(affiliations.index(a) + 1)
263263
for a in _aslist(author.get('affiliation', 'Unaffiliated'))
264264
]
265265
)
@@ -272,7 +272,7 @@ def _aslist(value):
272272
file=sys.stderr,
273273
)
274274

275-
print('Authors (%d):' % len(hits))
275+
print(f'Authors ({len(hits)}):')
276276
print(
277277
'{}.'.format(
278278
'; '.join(

CHANGES.rst

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
1+
24.1.2 (To be determined)
2+
=========================
3+
Bug fix release in the 24.1.x series.
4+
5+
* FIX: Ensure fieldmap is resampled correctly in report (#3387)
6+
7+
18
24.1.1 (October 10, 2024)
29
=========================
310
Bug fix release in the 24.1.x series.
411

512
Precomputed functional derivatives were not being correctly detected,
613
and a couple fixes for rare issues.
714

8-
* FIX: Remove checks for unit zooms and symmetric rotations in template warp (#3376)
9-
* FIX: Stop excluding FS minc_modify_header used during fallback registration (#3372)
10-
* FIX: Repair search for precomputed bold references (#3370)
11-
* FIX: Repair search for precomputed transforms (#3369)
15+
* FIX: Remove checks for unit zooms and symmetric rotations in template warp (#3376)
16+
* FIX: Stop excluding FS minc_modify_header used during fallback registration (#3372)
17+
* FIX: Repair search for precomputed bold references (#3370)
18+
* FIX: Repair search for precomputed transforms (#3369)
19+
1220

1321
24.1.0 (September 16, 2024)
1422
===========================
1523
New feature release in the 24.1.x series.
1624

1725
Handling of gradient echo fieldmaps is improved.
1826

19-
* FIX: Select volumetric dseg.tsv from recent TemplateFlow releases (#3257)
20-
* RF: Adapt to less T1w-centric smriprep (#3333)
21-
* RF: Use acres over vendored data loader (#3323)
22-
* DOC: Add benchmark page (#3312)
23-
* MAINT: Move to tox to simplify test/CI setup (#3326)
24-
* CI: Fix expected outputs for fieldmaps (#3321)
27+
* FIX: Select volumetric dseg.tsv from recent TemplateFlow releases (#3257)
28+
* RF: Adapt to less T1w-centric smriprep (#3333)
29+
* RF: Use acres over vendored data loader (#3323)
30+
* DOC: Add benchmark page (#3312)
31+
* MAINT: Move to tox to simplify test/CI setup (#3326)
32+
* CI: Fix expected outputs for fieldmaps (#3321)
33+
2534

2635
24.0.1 (July 16, 2024)
2736
======================

Dockerfile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ RUN mkdir -p /opt/afni-latest \
7777
-name "3dAutomask" -or \
7878
-name "3dvolreg" \) -delete
7979

80-
# Connectome Workbench 1.5.0
81-
FROM downloader AS workbench
82-
RUN mkdir /opt/workbench && \
83-
curl -sSLO https://www.humanconnectome.org/storage/app/media/workbench/workbench-linux64-v1.5.0.zip && \
84-
unzip workbench-linux64-v1.5.0.zip -d /opt && \
85-
rm workbench-linux64-v1.5.0.zip && \
86-
rm -rf /opt/workbench/libs_linux64_software_opengl /opt/workbench/plugins_linux64 && \
87-
strip --remove-section=.note.ABI-tag /opt/workbench/libs_linux64/libQt5Core.so.5
88-
8980
# Micromamba
9081
FROM downloader AS micromamba
9182

@@ -174,7 +165,6 @@ RUN apt-get update -qq \
174165
# Install files from stages
175166
COPY --from=freesurfer /opt/freesurfer /opt/freesurfer
176167
COPY --from=afni /opt/afni-latest /opt/afni-latest
177-
COPY --from=workbench /opt/workbench /opt/workbench
178168

179169
# Simulate SetUpFreeSurfer.sh
180170
ENV OS="Linux" \
@@ -198,10 +188,6 @@ ENV PATH="/opt/afni-latest:$PATH" \
198188
AFNI_IMSAVE_WARNINGS="NO" \
199189
AFNI_PLUGINPATH="/opt/afni-latest"
200190

201-
# Workbench config
202-
ENV PATH="/opt/workbench/bin_linux64:$PATH" \
203-
LD_LIBRARY_PATH="/opt/workbench/lib_linux64:$LD_LIBRARY_PATH"
204-
205191
# Create a shared $HOME directory
206192
RUN useradd -m -s /bin/bash -G users fmriprep
207193
WORKDIR /home/fmriprep

env.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ dependencies:
3030
- ants=2.5
3131
# Workflow dependencies: Convert3d
3232
- convert3d=1.4
33+
# Workflow dependencies: Connectome Workbench
34+
- connectome-workbench-cli=2.0
3335
# Workflow dependencies: FSL (versions pinned in 6.0.7.13)
3436
- fsl-bet2=2111.8
3537
- fsl-flirt=2111.2

fmriprep/cli/parser.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ def _to_gb(value):
105105
units = value[len(digits) :] or 'M'
106106
return int(digits) * scale[units[0]]
107107

108-
def _drop_sub(value):
109-
return value[4:] if value.startswith('sub-') else value
110-
111108
def _process_value(value):
112109
import bids
113110

@@ -205,7 +202,7 @@ def _slice_time_ref(value, parser):
205202
'--participant_label',
206203
action='store',
207204
nargs='+',
208-
type=_drop_sub,
205+
type=lambda label: label.removeprefix('sub-'),
209206
help='A space delimited list of participant identifiers or a single '
210207
'identifier (the sub- prefix can be removed)',
211208
)

0 commit comments

Comments
 (0)