Skip to content

Commit

Permalink
Adding Alias and Deprecation Warning
Browse files Browse the repository at this point in the history
* Added alias and deprecation warning for
```skimage.filters.gabor_filter```.
* Added alias and deprecation warning for
```skimage.filters.gaussian_filter```.
* Updated ```TODO.txt```
  • Loading branch information
sumitbinnani committed Oct 5, 2015
1 parent 811b689 commit 0bae5f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Version 0.14
------------
* Remove deprecated ``ntiles_*` kwargs in ``equalize_adapthist``.
* Remove deprecated ``skimage.restoration.nl_means_denoising``.
* Remove deprecated ``skimage.filters.gaussian_filter``.
* Remove deprecated ``skimage.filters.gabor_filter``.


Version 0.13
Expand Down
6 changes: 5 additions & 1 deletion skimage/filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
from . import rank
from .rank import median

from .._shared.utils import deprecated
from .._shared.utils import deprecated, copy_func
from .. import restoration
denoise_bilateral = deprecated('skimage.restoration.denoise_bilateral')\
(restoration.denoise_bilateral)
denoise_tv_bregman = deprecated('skimage.restoration.denoise_tv_bregman')\
(restoration.denoise_tv_bregman)
denoise_tv_chambolle = deprecated('skimage.restoration.denoise_tv_chambolle')\
(restoration.denoise_tv_chambolle)
gaussian_filter = copy_func(gaussian, name='gaussian_filter')
gaussian_filter = deprecated('skimage.filters.gaussian')(gaussian_filter)
gabor_filter = copy_func(gabor, name='gabor_filter')
gabor_filter = deprecated('skimage.filters.gabor')(gabor_filter)

# Backward compatibility v<0.11
@deprecated('skimage.feature.canny')
Expand Down

0 comments on commit 0bae5f9

Please sign in to comment.