Skip to content

Commit 2c4b75e

Browse files
committed
MERGE: 1.4.9
2 parents e1f4267 + bf468a1 commit 2c4b75e

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ jobs:
9797
steps:
9898
- restore_cache:
9999
keys:
100-
- env-v1-{{ .Branch }}-
101-
- env-v1-master-
102-
- env-v1-
100+
- env-v2-{{ .Branch }}-
101+
- env-v2-master-
102+
- env-v2-
103103
- run:
104104
name: Setup git-annex, DataLad & TemplateFlow
105105
command: |
@@ -109,7 +109,7 @@ jobs:
109109
git config --global user.email 'nipreps@gmail.com'
110110
python -m pip install --no-cache-dir -U templateflow
111111
- save_cache:
112-
key: env-v1-{{ .Branch }}-{{ .BuildNum }}
112+
key: env-v2-{{ .Branch }}-{{ .BuildNum }}
113113
paths:
114114
- /opt/conda
115115

CHANGES.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ This release upgrades the Dockerfile to use FSL6, and includes some new interfac
5454
* FIX: Scipy docs path (#681)
5555
* TEST: Drop excessively long interface equivalence tests (#674)
5656

57+
1.4.9 (April 21, 2022)
58+
======================
59+
Bug-fix release in the 1.4.x series.
60+
61+
This release includes improvements to the reliability of the BOLD masking workflow,
62+
as well as an fMRIPrep bug-fix when reusing multi-echo anatomicals.
63+
64+
* FIX: Account for potential lists of lists in multi-echo cases (#719)
65+
* FIX: Improve reliability of BOLD masking workflow (#712)
66+
5767
1.4.8 (April 08, 2022)
5868
======================
5969
Bug-fix release in the 1.4.x series.

niworkflows/func/util.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,7 @@ def init_enhance_and_skullstrip_bold_wf(
482482
norm.inputs.fixed_image = str(bold_template)
483483
map_brainmask = pe.Node(
484484
ApplyTransforms(
485-
interpolation="BSpline",
486-
float=True,
485+
interpolation="Linear",
487486
# Use the higher resolution and probseg for numerical stability in rounding
488487
input_image=str(
489488
get_template(
@@ -523,7 +522,7 @@ def init_enhance_and_skullstrip_bold_wf(
523522
workflow.connect([
524523
(inputnode, check_hdr, [("in_file", "reference")]),
525524
(pre_dilate, check_hdr, [("out_file", "in_file")]),
526-
(check_hdr, n4_correct, [("out_file", "mask_image")]),
525+
(check_hdr, n4_correct, [("out_file", "weight_image")]),
527526
(inputnode, n4_correct, [("in_file", "input_image")]),
528527
(inputnode, fixhdr_unifize, [("in_file", "hdr_file")]),
529528
(inputnode, fixhdr_skullstrip2, [("in_file", "hdr_file")]),

niworkflows/utils/misc.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,20 @@ def fix_multi_T1w_source_name(in_files):
107107
... '/path/to/sub-045_ses-retest_T1w.nii.gz'])
108108
'/path/to/sub-045_T1w.nii.gz'
109109
110+
111+
>>> fix_multi_T1w_source_name([
112+
... ('/path/to/sub-045-echo-1_T1w.nii.gz', 'path/to/sub-045-echo-2_T1w.nii.gz')])
113+
'/path/to/sub-045_T1w.nii.gz'
114+
110115
"""
111116
import os
112117
from nipype.utils.filemanip import filename_to_list
113118

114-
base, in_file = os.path.split(filename_to_list(in_files)[0])
119+
in_file = filename_to_list(in_files)[0]
120+
if isinstance(in_file, (list, tuple)):
121+
in_file = in_file[0]
122+
123+
base, in_file = os.path.split(in_file)
115124
subject_label = in_file.split("_", 1)[0].split("-")[1]
116125
return os.path.join(base, "sub-%s_T1w.nii.gz" % subject_label)
117126

0 commit comments

Comments
 (0)