MAINT: Remove deprecated Lena

This commit is contained in:
François Boulogne
2016-07-17 19:06:31 +02:00
parent 5e159dc218
commit 26fd360ee1
2 changed files with 0 additions and 22 deletions
-17
View File
@@ -26,7 +26,6 @@ __all__ = ['load',
'horse',
'hubble_deep_field',
'immunohistochemistry',
'lena',
'logo',
'moon',
'page',
@@ -62,22 +61,6 @@ def camera():
return load("camera.png")
@deprecated('skimage.data.astronaut')
def lena():
"""Colour "Lena" image.
**This image has been removed from scikit-image due to copyright
concerns.**
The standard, yet sometimes controversial Lena test image was
scanned from the November 1972 edition of Playboy magazine. From
an image processing perspective, this image is useful because it
contains smooth, textured, shaded as well as detail areas.
"""
raise RuntimeError("This image has been removed due to copyright concerns.")
def astronaut():
"""Colour image of the astronaut Eileen Collins.
-5
View File
@@ -3,11 +3,6 @@ import skimage.data as data
from numpy.testing import assert_equal, assert_almost_equal, assert_raises
def test_lena_removed():
""" Test that "Lena" has been removed """
assert_raises(RuntimeError, data.lena)
def test_astronaut():
""" Test that "astronaut" image can be loaded. """
astronaut = data.astronaut()