Skip to content

Commit a30192e

Browse files
committed
Merge remote-tracking branch 'upstream/maint/1.3.x' into maint/1.4.x
2 parents 748a024 + da1fb79 commit a30192e

File tree

5 files changed

+48
-27
lines changed

5 files changed

+48
-27
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ jobs:
225225
mkdir -p $PWD/artifacts $PWD/summaries
226226
docker run -u $( id -u ):$( id -g ) -it --rm -w /src/niworkflows \
227227
-e COVERAGE_FILE=/tmp/summaries/.pytest.coverage \
228+
-e SAVE_CIRCLE_ARTIFACTS="/tmp/artifacts/" \
228229
-e TEST_DATA_HOME=/data -v /tmp/data:/data \
229230
-e FS_LICENSE=/etc/fslicense.txt \
230231
-v /tmp/fslicense/license.txt:/etc/fslicense.txt:ro \
@@ -275,7 +276,7 @@ jobs:
275276

276277
test_package:
277278
docker:
278-
- image: circleci/python:3.8.5
279+
- image: cimg/python:3.9
279280
working_directory: /tmp/src/niworkflows
280281
steps:
281282
- checkout
@@ -299,7 +300,7 @@ jobs:
299300
300301
deploy_pypi:
301302
docker:
302-
- image: circleci/python:3.8.5
303+
- image: cimg/python:3.9
303304
working_directory: /tmp/src/niworkflows
304305
steps:
305306
- checkout
@@ -374,7 +375,7 @@ jobs:
374375
375376
build_docs:
376377
docker:
377-
- image: circleci/python:3.8.5
378+
- image: cimg/python:3.9
378379
environment:
379380
- FSLOUTPUTTYPE: NIFTI
380381
- SUBJECTS_DIR: /tmp/subjects
@@ -391,6 +392,11 @@ jobs:
391392
command: |
392393
python -m pip install --no-cache-dir -U "pip>=20.3"
393394
python -m pip install --no-cache-dir -r docs/requirements.txt
395+
eval "$(pyenv init -)"
396+
- run:
397+
name: Install Niworkflows
398+
command: |
399+
python -m pip install .
394400
- run:
395401
name: Build only this commit
396402
command: |

CHANGES.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,22 @@ A list of prominent changes can be found below. (With thanks to Lea Waller for t
149149
* ``NormalizeMotionParams`` now under ``confounds``.
150150
* ``FMRISummary``, ``CompCorVariancePlot``, ``ConfoundsCorrelationPlot`` from ``plotting``
151151

152+
1.3.6 (March 09, 2022)
153+
======================
154+
Bug-fix release in the 1.3.x series
155+
156+
* FIX: Set pixdim[4] to match RepetitionTime (#679)
157+
* DOC: Fix doc builds for 1.3.x series (#692)
158+
152159
1.3.5 (October 01, 2021)
153160
========================
154161
Bug-fix release in the 1.3.x series
155162

156-
* FIX: Set slope and intercept to 1/0 if not otherwise provided (#649)
157-
* FIX: DerivativesDataSink warning when it has multiple source files [backport #573] (#647)
158-
* FIX: `FSDetectInputs` mutually exclusive options for `ReconAll` (#646)
159-
* MNT: Update some version pinning and correct for *pandas* warning about keyword arguments (#645)
160-
* CI: Use datalad-managed test data [BACKPORT] (#653)
163+
* FIX: Set slope and intercept to 1/0 if not otherwise provided (#649)
164+
* FIX: DerivativesDataSink warning when it has multiple source files [backport #573] (#647)
165+
* FIX: `FSDetectInputs` mutually exclusive options for `ReconAll` (#646)
166+
* MNT: Update some version pinning and correct for *pandas* warning about keyword arguments (#645)
167+
* CI: Use datalad-managed test data [BACKPORT] (#653)
161168

162169
1.3.4 (June 8, 2021)
163170
====================

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ sphinx ~= 4.2
1010
sphinxcontrib-apidoc
1111
sphinxcontrib-napoleon
1212
templateflow
13+
nitransforms >= 20.0.0rc3

niworkflows/interfaces/bids.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,12 +630,17 @@ def _run_interface(self, runtime):
630630
(4, 4) if self.inputs.space in STANDARD_SPACES else (2, 2)
631631
)
632632

633-
if curr_codes != xcodes or curr_units != units:
633+
curr_zooms = zooms = hdr.get_zooms()
634+
if "RepetitionTime" in self.inputs.get():
635+
zooms = curr_zooms[:3] + (self.inputs.RepetitionTime,)
636+
637+
if (curr_codes, curr_units, curr_zooms) != (xcodes, units, zooms):
634638
self._results["fixed_hdr"][i] = True
635639
new_header = hdr.copy()
636640
new_header.set_qform(nii.affine, xcodes[0])
637641
new_header.set_sform(nii.affine, xcodes[1])
638642
new_header.set_xyzt_units(*units)
643+
new_header.set_zooms(zooms)
639644

640645
if data_dtype == "source": # match source dtype
641646
try:

niworkflows/interfaces/confounds.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,26 @@ class _ExpandModelInputSpec(BaseInterfaceInputSpec):
8080
Formula for generating model expansions. By default, the
8181
32-parameter expansion will be generated. Note that any expressions
8282
to be expanded *must* be in parentheses, even if they include only
83-
a single variable (e.g., ``(x)^2``, not ``x^2``). Examples:
84-
85-
* ``rps + wm + csf + gsr`` : 9-parameter model. ``rps`` denotes realignment
86-
parameters, ``wm`` denotes mean white matter signal, ``csf`` denotes mean
87-
cerebrospinal fluid signal, and ``gsr`` denotes mean global signal.
88-
* ``(dd1(rps + wm + csf + gsr))^^2`` : 36-parameter expansion.
89-
``rps + wm + csf + gsr`` denotes that realignment parameters and mean
90-
WM, CSF, and global signals should be included. ``dd1`` denotes that
91-
these signals should be augmented with their first temporal
92-
derivatives. ``^^2`` denotes that the original signals and temporal
93-
derivatives should be augmented with quadratic expansions.
94-
* ``(dd1(rps))^^2`` : 24-parameter expansion. ``rps`` denotes that
95-
realignment parameters should be included. ``dd1`` and ``^^2`` denote
96-
temporal derivative and quadratic expansions as above.
97-
* ``(dd1(rps + wm + csf + gsr))^^2 + others`` : generate all expansion
98-
terms necessary for a 36-parameter model as above, and
99-
concatenate those expansion terms to all other regressor columns
100-
in the confounds file.
83+
a single variable (e.g., ``(x)^2``, not ``x^2``).
84+
85+
Examples:
86+
87+
* ``rps + wm + csf + gsr`` : 9-parameter model. ``rps`` denotes realignment
88+
parameters, ``wm`` denotes mean white matter signal, ``csf`` denotes mean
89+
cerebrospinal fluid signal, and ``gsr`` denotes mean global signal.
90+
* ``(dd1(rps + wm + csf + gsr))^^2`` : 36-parameter expansion.
91+
``rps + wm + csf + gsr`` denotes that realignment parameters and mean
92+
WM, CSF, and global signals should be included. ``dd1`` denotes that
93+
these signals should be augmented with their first temporal
94+
derivatives. ``^^2`` denotes that the original signals and temporal
95+
derivatives should be augmented with quadratic expansions.
96+
* ``(dd1(rps))^^2`` : 24-parameter expansion. ``rps`` denotes that
97+
realignment parameters should be included. ``dd1`` and ``^^2`` denote
98+
temporal derivative and quadratic expansions as above.
99+
* ``(dd1(rps + wm + csf + gsr))^^2 + others`` : generate all expansion
100+
terms necessary for a 36-parameter model as above, and
101+
concatenate those expansion terms to all other regressor columns
102+
in the confounds file.
101103
102104
""",
103105
)

0 commit comments

Comments
 (0)