[SciPy-User] weird TypeError: only length-1 arrays can be converted to Python scalars

Pauli Virtanen pav at iki.fi
Thu May 26 04:28:19 EDT 2011


Thu, 26 May 2011 12:27:09 +1000, Wolfgang Kerzendorf wrote:
[clip]
>    File "/Users/wkerzend/scripts/python/pyspecgrid/specgrid.py", line
> 235, in getSpec
>      return oned.onedspec(self.wave, self.interpGrid(args),
>      mode='waveflux')

You are apparently passing to interpGrid `args` that contains some
strange stuff that cannot be converted to an array.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list