Skip to content

Commit 397b1e0

Browse files
committed
Merge tag '23.2.1'
23.2.1 (March 06, 2024) Bug fix release in the 23.2.x series. Masks, BOLD references and T2\* maps resampled into template spaces had their order of transforms inverted. BOLD files were unaffected. This release also preserves the TR in the NIfTI header of BOLD series. * FIX: Preserve pixdim4+ of resampled images (#3239) * FIX: Flip order of transforms in ``init_ds_volumes_wf`` (#3238) * DOCKER: restore mincinfo binary (#3249) * CI: Move to new CircleCI machine tags (#3247)
2 parents ffc3810 + e9b0840 commit 397b1e0

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

.github/workflows/contrib.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ on:
44
push:
55
branches:
66
- master
7-
- maint/*
87
pull_request:
98
branches:
109
- master
11-
- maint/*
1210

1311
defaults:
1412
run:

CHANGES.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
23.2.1 (March 06, 2024)
2+
=======================
3+
Bug fix release in the 23.2.x series.
4+
5+
Masks, BOLD references and T2\* maps resampled into template spaces had
6+
their order of transforms inverted. BOLD files were unaffected.
7+
8+
This release also preserves the TR in the NIfTI header of BOLD series.
9+
10+
* FIX: Preserve pixdim4+ of resampled images (#3239)
11+
* FIX: Flip order of transforms in ``init_ds_volumes_wf`` (#3238)
12+
* DOCKER: restore mincinfo binary (#3249)
13+
* CI: Move to new CircleCI machine tags (#3247)
14+
15+
116
23.2.0 (January 10, 2024)
217
=========================
318
New feature release in the 23.2.x series.

fmriprep/interfaces/resampling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ def resample_image(
588588
)
589589
resampled_img = nb.Nifti1Image(resampled_data, target.affine, target.header)
590590
resampled_img.set_data_dtype('f4')
591+
# Preserve zooms of additional dimensions
592+
resampled_img.header.set_zooms(target.header.get_zooms()[:3] + source.header.get_zooms()[3:])
591593

592594
return resampled_img
593595

fmriprep/workflows/bold/outputs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,10 @@ def init_ds_volumes_wf(
735735
workflow.connect([
736736
(inputnode, raw_sources, [('source_files', 'in_files')]),
737737
(inputnode, boldref2target, [
738-
('boldref2anat_xfm', 'in1'),
739-
('anat2std_xfm', 'in2'),
738+
# Note that ANTs expects transforms in target-to-source order
739+
# Reverse this for nitransforms-based resamplers
740+
('anat2std_xfm', 'in1'),
741+
('boldref2anat_xfm', 'in2'),
740742
]),
741743
(inputnode, ds_bold, [
742744
('source_files', 'source_file'),

0 commit comments

Comments
 (0)