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

buildbot error in #228

matthew-brett opened this Issue Aug 9, 2013 · 2 comments


None yet
2 participants

matthew-brett commented Aug 9, 2013


ERROR: dipy.segment.tests.test_mask.test_mask
Traceback (most recent call last):
File "/Users/buildslave/osx-10.5-ppc/dipy-py2_6-osx-10_5-ppc/build/venv/lib/python2.6/site-packages/nose/", line 197, in runTest
File "/Users/buildslave/osx-10.5-ppc/dipy-py2_6-osx-10_5-ppc/build/venv/lib/python2.6/site-packages/dipy/segment/tests/", line 40, in test_mask
    median_test = multi_median(median_test, medianradius, 3)
File "/Users/buildslave/osx-10.5-ppc/dipy-py2_6-osx-10_5-ppc/build/venv/lib/python2.6/site-packages/dipy/segment/", line 28, in multi_median
    outvol = np.zeros_like(input, dtype=input.dtype)
TypeError: zeros_like() got an unexpected keyword argument 'dtype'

Ran 254 tests in 163.926s

This is with numpy 1.4.1. I think that zeros_like already uses the input data type, so the extra dtype=input.dtype is not necessary. Maybe you could remove that in The tests still pass if you do.


This comment has been minimized.


arokem commented Aug 9, 2013

Yup. #229

matthew-brett added a commit that referenced this issue Aug 16, 2013

Merge pull request #229 from arokem/zeros_like_dtype
BF: input.dtype is used per default

And no dtype kwarg on some versions of numpy.

Addresses #228

This comment has been minimized.


matthew-brett commented Oct 16, 2013

Closed by pull request #229

@arokem arokem closed this Jan 11, 2014

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