[SciPy-User] ValueError: setting and array element with a sequence
Mon Jan 11 10:42:27 CST 2010
On Mon, Jan 11, 2010 at 10:40, Bruce Ford <email@example.com> wrote:
> I'm new at this and I'm getting this error. It looks straightforward
> enough. Any ideas?
> ynew = numpy.linspace (0,360,360)/2.5
> xnew = numpy.linspace (0,180, 180)/2.5
> coords = numpy.array([xnew, ynew])
> yeilds: ValueError: setting and array element with a sequence
ynew has 360 elements. xnew has 180. They need to be the same if you
want to make an (2,N)-shape array from them.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-User