Skip to content

Commit

Permalink
Merge pull request #761 from nipreps/rel/1.7.0
Browse files Browse the repository at this point in the history
DOC: 1.7.0 release notes
  • Loading branch information
effigies authored Nov 29, 2022
2 parents 456685f + 60767ff commit d990e75
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
11 changes: 11 additions & 0 deletions niworkflows/interfaces/nibabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#
"""Nibabel-based interfaces."""
from pathlib import Path
from warnings import warn

import numpy as np
import nibabel as nb
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d990e75

Please sign in to comment.