Skip to content

Commit d990e75

Browse files
authored
Merge pull request #761 from nipreps/rel/1.7.0
DOC: 1.7.0 release notes
2 parents 456685f + 60767ff commit d990e75

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

CHANGES.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
1.7.0 (November 29, 2022)
2+
=========================
3+
New feature release in the 1.7.x series. This series will support sMRIPrep 0.10,
4+
fMRIPrep 22.1, and NiBabies 22.2.
5+
6+
This will be the last minor release series to support Python 3.7.
7+
8+
* FIX: Use ``np.bool_`` instead of deprecated np.bool (#760)
9+
* FIX: Use nilearn plot_surf over surfplot (#745)
10+
* ENH: Allow DerivativesDataSink to handle output==input (#758)
11+
* ENH: Add ``Resolution`` field to metadata if data has ``res`` entity (#754)
12+
* ENH: Add morphometric suffixes to pattern matching (#753)
13+
* RF: GenerateCifti interface (#756)
14+
* MNT: Loosen dependency versions (#759)
15+
* MNT: Remove non-compliant ``dtseries.json`` metadata (#750)
16+
* MNT: Build FreeSurfer 7.2 (#751)
17+
118
1.6.4 (September 13, 2022)
219
==========================
320
Patch release in the 1.6.x series.

niworkflows/interfaces/nibabel.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#
2323
"""Nibabel-based interfaces."""
2424
from pathlib import Path
25+
from warnings import warn
2526

2627
import numpy as np
2728
import nibabel as nb
@@ -132,10 +133,20 @@ class _BinaryDilationOutputSpec(TraitedSpec):
132133

133134
class BinaryDilation(SimpleInterface):
134135
"""Morphological binary dilation using Scipy."""
136+
# DEPRECATED in 1.7.0
137+
# To remove in 1.9.0
135138

136139
input_spec = _BinaryDilationInputSpec
137140
output_spec = _BinaryDilationOutputSpec
138141

142+
def __init__(self, from_file=None, resource_monitor=None, **inputs):
143+
warn("""\
144+
niworkflows.interfaces.nibabel.BinaryDilation is deprecated in favor of
145+
niworkflows.interfaces.morphology.BinaryDilation. Please validate that
146+
interface for your use case and switch.
147+
""", DeprecationWarning, stacklevel=2)
148+
super().__init__(from_file=from_file, resource_monitor=resource_monitor, **inputs)
149+
139150
def _run_interface(self, runtime):
140151
self._results["out_file"] = _dilate(
141152
self.inputs.in_file,

0 commit comments

Comments
 (0)