On 15 October 2011 22:17, Tony Yu <tsyu80@gmail.com> wrote:


On Sat, Oct 15, 2011 at 12:21 PM, Nelle Varoquaux <nelle.varoquaux@gmail.com> wrote:
Hi all,

I've worked on renaming scikits.image to skimage. Unfortunately, I have one test failing. I have no clue how to fix that, and would appreciate some help on that.

I'm using numpy 1.6.1 and cython 0.15.1

======================================================================
ERROR: test_project.test_homography
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nelle/Projets/skimage/env/lib/python2.6/site-packages/nose-1.1.2-py2.6.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/nelle/Projets/skimage/skimage/transform/tests/test_project.py", line 23, in test_homography
    x90 = homography(x, M, order=1)
  File "/home/nelle/Projets/skimage/skimage/transform/project.py", line 101, in homography
    mode=mode, order=order, cval=cval)
  File "/home/nelle/Projets/skimage/env/lib/python2.6/site-packages/scipy-0.9.0-py2.6-linux-i686.egg/scipy/ndimage/interpolation.py", line 298, in map_coordinates
    output, order, mode, cval, None, None)
RuntimeError: data type not supported

Thanks,
Nelle

Hi Nelle,

Thanks for working on this. I actually don't have any test failures when I check out your branch. Nose reports 227 tests run (4 skips, but the skips are b/c I don't have pyfits on my machine).

I'm running cython 14.1 and numpy dev (and scipy dev), so my system isn't exactly a match. But I can't imagine how these differences could change the test behavior before and after the renaming. Are you sure the test passed before the rename?
 
I still have this installation problem, really annoying with the cython compiled files, so I have ran the tests on master. I'll try to do that now.
 

Also, if anyone else wants to test this branch, just note that git acts a little weird with it. When I checkout the skimage branch, it adds the skimage tree, but doesn't remove the scikits.image tree (which can cause build/test problems). Similarly, switching back adds the scikits.image tree, but doesn't remove the skimage tree. You'll need to manually remove these before building/testing.

Git does not remove folders if there are unchecked files in them (*.pyc, *.so etc. Once we do the merge, it should be easier.
 

Best,
-Tony