Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/maint/1.2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Sep 11, 2020
2 parents 1449807 + c5432fb commit f66a419
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
32 changes: 20 additions & 12 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,26 @@ have been deemed ready to upstream into Nipype, and several improvements regardi
multi-echo EPI are included.
With thanks to Basile Pinsard for contributions.

* FIX: Patch ``ApplyTransforms`` spec to permit identity in a chain (#554)
* FIX: Add dots to extensions in PyBIDS' config file (#548)
* FIX: Segmentation plots aligned with cardinal axes (#544)
* FIX: Skip T1w file existence check if ``anat_derivatives`` are provided (#545)
* FIX: Avoid diverting CIFTI dtype from original BOLD (#532)
* ENH: Add ``smooth`` input to ``RegridToZooms`` (#549)
* ENH: Enable ``DerivativesDataSink`` to take multiple source files to derive entities (#547)
* ENH: Allow ``bold_reference_wf`` to accept multiple EPIs/SBRefs (#408)
* ENH: Numerical stability of EPI brain-masks using probabilistic prior (#485)
* ENH: Add a pure-Python interface to resample to specific resolutions (#511)
* MAINT: Finalize upstreaming of ANTs' interfaces to Nipype (#550)
* MAINT: Update to Python +3.6 (#541)
* FIX: Patch ``ApplyTransforms`` spec to permit identity in a chain (#554)
* FIX: Add dots to extensions in PyBIDS' config file (#548)
* FIX: Segmentation plots aligned with cardinal axes (#544)
* FIX: Skip T1w file existence check if ``anat_derivatives`` are provided (#545)
* FIX: Avoid diverting CIFTI dtype from original BOLD (#532)
* ENH: Add ``smooth`` input to ``RegridToZooms`` (#549)
* ENH: Enable ``DerivativesDataSink`` to take multiple source files to derive entities (#547)
* ENH: Allow ``bold_reference_wf`` to accept multiple EPIs/SBRefs (#408)
* ENH: Numerical stability of EPI brain-masks using probabilistic prior (#485)
* ENH: Add a pure-Python interface to resample to specific resolutions (#511)
* MAINT: Finalize upstreaming of ANTs' interfaces to Nipype (#550)
* MAINT: Update to Python +3.6 (#541)

1.2.9 (September 11, 2020)
==========================
Bug-fix release in the 1.2.x series with very minor problems addressed.

* FIX: Reportlets would crash in edge condition (#566)
* FIX: AROMA metadata ``CsfFraction`` -> ``CSFFraction`` (#563)
* FIX: Add DWI nonstandard spaces (#565)

1.2.8 (September 03, 2020)
==========================
Expand Down
2 changes: 1 addition & 1 deletion niworkflows/interfaces/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ def less_breakable(a_string):
for i in tsv_data.index
]
tsv_data.columns = [
re.sub(re_to_camel, camel, less_breakable(i).title(), 0)
re.sub(re_to_camel, camel, less_breakable(i).title(), 0).replace("Csf", "CSF")
for i in tsv_data.columns
]
json_data = tsv_data.to_json(orient="index")
Expand Down
2 changes: 2 additions & 0 deletions niworkflows/utils/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"run",
"sbref",
"session",
"individual",
"dwi",
]
"""List of supported nonstandard reference spaces."""

Expand Down
2 changes: 1 addition & 1 deletion niworkflows/viz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def cuts_from_bbox(mask_nii, cuts=3):
smin, smax = (0, mask_data.shape[ax] - 1)

B = np.argwhere(c > th)
if not B.size: # Threshold too high
if B.size < cuts: # Threshold too high
B = np.argwhere(c > 0)
if B.size:
smin, smax = B.min(), B.max()
Expand Down

0 comments on commit f66a419

Please sign in to comment.