[Scipy-tickets] [SciPy] #1407: CloughTocher2DInterpolator

SciPy Trac scipy-tickets@scipy....
Thu Mar 10 20:09:28 CST 2011


#1407: CloughTocher2DInterpolator
----------------------------------------+-----------------------------------
 Reporter:  wkerzendorf                 |       Owner:  somebody  
     Type:  defect                      |      Status:  needs_info
 Priority:  normal                      |   Milestone:  0.9.1     
Component:  Other                       |     Version:  0.9.0     
 Keywords:  CloughTocher2DInterpolator  |  
----------------------------------------+-----------------------------------
Changes (by pv):

  * status:  new => needs_info


Old description:

> There seems to be an error in the CloughTocher2DInterpolator. If I give
> the same values and points to the LinearNDInterpolator it works.
>
> I also don't understand the error message.
>
> Here's the traceback
> --> 168         return interpolate.CloughTocher2DInterpolator(points,
> values)
>     169
>     170     def interpolate(self, point):
>
> /Library/Python/2.6/site-packages/scipy/interpolate/interpnd.so in
> interpnd.CloughTocher2DInterpolator.__init__
> (scipy/interpolate/interpnd.c:5032)()
>    1044
>    1045
> -> 1046
>    1047
>    1048
>
> /Library/Python/2.6/site-packages/scipy/interpolate/interpnd.so in
> interpnd.NDInterpolatorBase.__init__
> (scipy/interpolate/interpnd.c:1192)()
>      61
>      62
> ---> 63
>      64
>      65
>
> /Library/Python/2.6/site-packages/scipy/interpolate/interpnd.so in
> interpnd.NDInterpolatorBase._check_init_shape
> (scipy/interpolate/interpnd.c:1659)()
>      98
>      99
> --> 100
>     101
>     102
>
> ValueError: unsupported format character 'D' (0x44) at index 48

New description:

 There seems to be an error in the CloughTocher2DInterpolator. If I give
 the same values and points to the LinearNDInterpolator it works.

 I also don't understand the error message.
 {{{
 Here's the traceback
 --> 168         return interpolate.CloughTocher2DInterpolator(points,
 values)
     169
     170     def interpolate(self, point):

 /Library/Python/2.6/site-packages/scipy/interpolate/interpnd.so in
 interpnd.CloughTocher2DInterpolator.__init__
 (scipy/interpolate/interpnd.c:5032)()
    1044
    1045
 -> 1046
    1047
    1048

 /Library/Python/2.6/site-packages/scipy/interpolate/interpnd.so in
 interpnd.NDInterpolatorBase.__init__ (scipy/interpolate/interpnd.c:1192)()
      61
      62
 ---> 63
      64
      65

 /Library/Python/2.6/site-packages/scipy/interpolate/interpnd.so in
 interpnd.NDInterpolatorBase._check_init_shape
 (scipy/interpolate/interpnd.c:1659)()
      98
      99
 --> 100
     101
     102

 ValueError: unsupported format character 'D' (0x44) at index 48
 }}}

--

Comment:

 Works for me. Are you using it correctly? Please provide a self-contained
 example producing the error.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1407#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