scikits-image/scikits-image — Issue #144: test_exposure.test_equalize_ubyte ... ERROR: "ValueError: Images of type float must be between 0 and 1"
Author: npinto
Created: 2012-02-20 02:29:49+00:00
State: open

Running `nosetests -s -x -v --with-doctest` on HEAD:

```
test_exposure.test_equalize_ubyte ... ERROR

======================================================================
ERROR: test_exposure.test_equalize_ubyte
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/npinto/venv/skimage-shape-system/scikits-image/skimage/exposure/tests/test_exposure.py", line 17, in test_equalize_ubyte
img_eq = exposure.equalize(test_img)
File "/home/npinto/venv/skimage-shape-system/scikits-image/skimage/exposure/exposure.py", line 104, in equalize
image = skimage.img_as_float(image)
File "/home/npinto/venv/skimage-shape-system/scikits-image/skimage/util/dtype.py", line 181, in img_as_float
return convert(image, np.float64)
File "/home/npinto/venv/skimage-shape-system/scikits-image/skimage/util/dtype.py", line 75, in convert
raise ValueError("Images of type float must be between 0 and 1")
ValueError: Images of type float must be between 0 and 1

----------------------------------------------------------------------
Ran 23 tests in 0.134s

FAILED (errors=1)
```