[Scipy-tickets] [SciPy] #1832: ValueError: Buffer not C contiguous.

SciPy Trac scipy-tickets@scipy....
Fri Feb 1 04:13:41 CST 2013


#1832: ValueError: Buffer not C contiguous.
--------------------------------+-------------------------------------------
  Reporter:  nils               |       Owner:  pv         
      Type:  defect             |      Status:  closed     
  Priority:  normal             |   Milestone:  Unscheduled
 Component:  scipy.interpolate  |     Version:  0.11.0     
Resolution:  invalid            |    Keywords:             
--------------------------------+-------------------------------------------
Changes (by pv):

  * status:  new => closed
  * resolution:  => invalid


Old description:

> {{{
> ======================================================================
> ERROR: test_interpnd.TestEstimateGradients2DGlobal.test_smoketest
> ----------------------------------------------------------------------
> 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_interpnd.py", line 125, in
> test_smoketest
>     dz = interpnd.estimate_gradients_2d_global(tri, z, tol=1e-6)
>   File "interpnd.pyx", line 482, in
> scipy.interpolate.interpnd.estimate_gradients_2d_global
> (scipy/interpolate/interpnd.c:6632)
> ValueError: Buffer not C contiguous.
> }}}

New description:

 {{{
 ======================================================================
 ERROR: test_interpnd.TestEstimateGradients2DGlobal.test_smoketest
 ----------------------------------------------------------------------
 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_interpnd.py", line 125, in
 test_smoketest
     dz = interpnd.estimate_gradients_2d_global(tri, z, tol=1e-6)
   File "interpnd.pyx", line 482, in
 scipy.interpolate.interpnd.estimate_gradients_2d_global
 (scipy/interpolate/interpnd.c:6632)
 ValueError: Buffer not C contiguous.
 }}}

--

Comment:

 Occurs only on Numpy master, not on 1.6.2/1.7.x This is a Numpy bug, I
 believe.

 Numpy issue: https://github.com/numpy/numpy/issues/2956

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1832#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list