[SciPy-User] weird TypeError: only length-1 arrays can be converted to Python scalars
Wolfgang Kerzendorf
wkerzendorf at googlemail.com
Thu May 26 07:13:28 EDT 2011
That's what I thought initially. I tested all of this and the function
ran in debug mode without raising errors.
The solution was that there was an error at a completely different end
of the program and it somehow affected it.
It works now, but I don't understand how the error came to be.
Thanks
Wolfgang
On 26/05/11 6:28 PM, Pauli Virtanen wrote:
> 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.
>
More information about the SciPy-User
mailing list