Skip to content
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

ValueError: Buffer and memoryview are not contiguous in the same dimension. (Trac #1830) #2349

Closed
scipy-gitbot opened this issue Apr 25, 2013 · 1 comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac scipy.interpolate

Comments

@scipy-gitbot
Copy link

Original ticket http://projects.scipy.org/scipy/ticket/1830 on 2013-01-31 by @nilswagner01, assigned to @pv.

======================================================================
ERROR: test_ndgriddata.TestGriddata.test_multipoint_2d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_ndgriddata.py", line 49, in test_multipoint_2d
    yi = griddata(x, y, xi, method=method)
  File "/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/ndgriddata.py", line 185, in griddata
    return ip(xi)
  File "interpnd.pyx", line 144, in scipy.interpolate.interpnd.NDInterpolatorBase.__call__ (scipy/interpolate/interpnd.c:3134)
  File "interpnd.pyx", line 211, in scipy.interpolate.interpnd.LinearNDInterpolator._evaluate_double (scipy/interpolate/interpnd.c:3955)
  File "interpnd.pyx", line 219, in scipy.interpolate.interpnd.LinearNDInterpolator._do_evaluate (scipy/interpolate/interpnd.c:4652)
ValueError: Buffer and memoryview are not contiguous in the same dimension.
@scipy-gitbot
Copy link
Author

@pv wrote on 2013-02-01

Occurs only on Numpy master, not on 1.6.2/1.7.x

This is a Numpy bug, I believe, as the offending code is

cdef double[:,::1] data
...
y = np.ascontiguousarray(y, dtype=np.double)
data = y

Numpy issue: numpy/numpy#2956

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac scipy.interpolate
Projects
None yet
Development

No branches or pull requests

1 participant