[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Python-numpy transition breaks at least two packages



Hi,

I have cloned bug #848758 where I suggested to revert the python-numpy
transition which other posters agreed upon.  Besides breaking
python-skbio I spotted another package python-skimage which fails with:


======================================================================
ERROR: skimage.filters.rank.tests.test_rank.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/filters/rank/tests/test_rank.py", line 16, in test_all
    check_all()
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/_shared/testing.py", line 232, in inner
    result = func(*args, **kwargs)
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/filters/rank/tests/test_rank.py", line 89, in check_all
    rank.windowed_histogram(image, selem))
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/filters/rank/generic.py", line 986, in windowed_histogram
    pixel_size=n_bins)
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/filters/rank/generic.py", line 90, in _apply_vector_per_pixel
    pixel_size=pixel_size)
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/filters/rank/generic.py", line 53, in _handle_input
    out = np.empty(image.shape+(pixel_size,), dtype=out_dtype)
TypeError: 'numpy.float64' object cannot be interpreted as an index

----------------------------------------------------------------------
Ran 1383 tests in 181.697s


I'll leave it to the reader to consider lowering the severity of this
bug and risking that python-skimage (and possibly other packages) will
not reach the next stable release.  While python-skbio is a package of
minor importance python-skimage has several reverse depends and should
be saved.

Kind regards

      Andreas.

-- 
http://fam-tille.de


Reply to: