From 60a3402ade6ffed2a0e8c082b05c61864faf006d Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Mon, 28 Nov 2022 16:35:57 -0500 Subject: [PATCH 1/2] DOC: 1.7.0 release notes --- CHANGES.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 444fa9e5ddb..e237cca171a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,20 @@ +1.7.0 (November 29, 2022) +========================= +New feature release in the 1.7.x series. This series will support sMRIPrep 0.10, +fMRIPrep 22.1, and NiBabies 22.2. + +This will be the last minor release series to support Python 3.7. + +* FIX: Use ``np.bool_`` instead of deprecated np.bool (#760) +* FIX: Use nilearn plot_surf over surfplot (#745) +* ENH: Allow DerivativesDataSink to handle output==input (#758) +* ENH: Add ``Resolution`` field to metadata if data has ``res`` entity (#754) +* ENH: Add morphometric suffixes to pattern matching (#753) +* RF: GenerateCifti interface (#756) +* MNT: Loosen dependency versions (#759) +* MNT: Remove non-compliant ``dtseries.json`` metadata (#750) +* MNT: Build FreeSurfer 7.2 (#751) + 1.6.4 (September 13, 2022) ========================== Patch release in the 1.6.x series. From 60767ffc6ca945ff562580289b7f6e20100a0841 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Mon, 28 Nov 2022 16:46:56 -0500 Subject: [PATCH 2/2] MNT: Deprecate interfaces.nibabel.BinaryDilation (closing gh-708) --- niworkflows/interfaces/nibabel.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/niworkflows/interfaces/nibabel.py b/niworkflows/interfaces/nibabel.py index 777d2341392..acdf6d369dc 100644 --- a/niworkflows/interfaces/nibabel.py +++ b/niworkflows/interfaces/nibabel.py @@ -22,6 +22,7 @@ # """Nibabel-based interfaces.""" from pathlib import Path +from warnings import warn import numpy as np import nibabel as nb @@ -132,10 +133,20 @@ class _BinaryDilationOutputSpec(TraitedSpec): class BinaryDilation(SimpleInterface): """Morphological binary dilation using Scipy.""" + # DEPRECATED in 1.7.0 + # To remove in 1.9.0 input_spec = _BinaryDilationInputSpec output_spec = _BinaryDilationOutputSpec + def __init__(self, from_file=None, resource_monitor=None, **inputs): + warn("""\ +niworkflows.interfaces.nibabel.BinaryDilation is deprecated in favor of +niworkflows.interfaces.morphology.BinaryDilation. Please validate that +interface for your use case and switch. +""", DeprecationWarning, stacklevel=2) + super().__init__(from_file=from_file, resource_monitor=resource_monitor, **inputs) + def _run_interface(self, runtime): self._results["out_file"] = _dilate( self.inputs.in_file,