Skip to content

Tests: validate_proxy_slicing: ValueError: cannot set WRITEABLE flag to True of this array #370

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

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

Comments

@ignatenkobrain
Copy link

======================================================================
ERROR: autogenerated test from validate_proxy_slicing
----------------------------------------------------------------------
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/nibabel-2.0.1/nibabel/tests/test_api_validators.py", line 22, in meth
    validator(self, imaker, params)
  File "/builddir/build/BUILD/nibabel-2.0.1/nibabel/tests/test_proxy_api.py", line 159, in validate_proxy_slicing
    assert_array_equal(arr[sliceobj], prox[sliceobj])
  File "/builddir/build/BUILD/nibabel-2.0.1/nibabel/parrec.py", line 581, in __getitem__
    _, slopes, inters = np.broadcast_arrays(fake_data, slopes, inters)
  File "/usr/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py", line 200, in broadcast_arrays
    for array in args]
  File "/usr/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py", line 70, in _broadcast_to
    result.flags.writeable = True
ValueError: cannot set WRITEABLE flag to True of this array

I'm not sure, probably bug in NumPy. I'm using NumPy 1.10.1

@effigies
Copy link
Member

Fixed in #358. If you can use the git repository instead of a release version, that should solve your problem.

@ignatenkobrain
Copy link
Author

@effigies I'm packaging nibabel for Fedora, so I'd like to use stable version if no critical issues found. I will apply patch from #358 for now. Thanks for very quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants