New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dipy.reconst.tests.test_shm.test_sf_to_sh: TypeError: Cannot cast ufunc add output from dtype('float64') to dtype('uint16') with casting rule 'same_kind' #755

Closed
ignatenkobrain opened this Issue Oct 31, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@ignatenkobrain

ignatenkobrain commented Oct 31, 2015

======================================================================
ERROR: dipy.reconst.tests.test_shm.test_sf_to_sh
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/dipy-0.9.2/build/lib.linux-x86_64-2.7/dipy/reconst/tests/test_shm.py", line 356, in test_sf_to_sh
    sphere = hemi_icosahedron.subdivide(2)
  File "/builddir/build/BUILD/dipy-0.9.2/build/lib.linux-x86_64-2.7/dipy/core/sphere.py", line 369, in subdivide
    sphere = self.mirror()
  File "/builddir/build/BUILD/dipy-0.9.2/build/lib.linux-x86_64-2.7/dipy/core/sphere.py", line 350, in mirror
    _switch_vertex(edges[:,0], edges[:,1], vertices)
  File "/builddir/build/BUILD/dipy-0.9.2/build/lib.linux-x86_64-2.7/dipy/core/sphere.py", line 404, in _switch_vertex
    index2[is_far] += n/2
TypeError: Cannot cast ufunc add output from dtype('float64') to dtype('uint16') with casting rule 'same_kind'
@arokem

This comment has been minimized.

Member

arokem commented Oct 31, 2015

I believe this was fixed in #731

Could you please confirm?

@ignatenkobrain

This comment has been minimized.

ignatenkobrain commented Oct 31, 2015

Thanks. It fixes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment