Skip to content

Commit

Permalink
Merge tag '23.2.1'
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
effigies committed Mar 6, 2024
2 parents ffc3810 + e9b0840 commit 397b1e0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- master
- maint/*
pull_request:
branches:
- master
- maint/*

defaults:
run:
Expand Down
15 changes: 15 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
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)


23.2.0 (January 10, 2024)
=========================
New feature release in the 23.2.x series.
Expand Down
2 changes: 2 additions & 0 deletions fmriprep/interfaces/resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ def resample_image(
)
resampled_img = nb.Nifti1Image(resampled_data, target.affine, target.header)
resampled_img.set_data_dtype('f4')
# Preserve zooms of additional dimensions
resampled_img.header.set_zooms(target.header.get_zooms()[:3] + source.header.get_zooms()[3:])

return resampled_img

Expand Down
6 changes: 4 additions & 2 deletions fmriprep/workflows/bold/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,10 @@ def init_ds_volumes_wf(
workflow.connect([
(inputnode, raw_sources, [('source_files', 'in_files')]),
(inputnode, boldref2target, [
('boldref2anat_xfm', 'in1'),
('anat2std_xfm', 'in2'),
# Note that ANTs expects transforms in target-to-source order
# Reverse this for nitransforms-based resamplers
('anat2std_xfm', 'in1'),
('boldref2anat_xfm', 'in2'),
]),
(inputnode, ds_bold, [
('source_files', 'source_file'),
Expand Down

0 comments on commit 397b1e0

Please sign in to comment.