[Numpy-discussion] problem: I get an array that doesn't have a length

Pierre GM pgmdevlist at gmail.com
Wed May 2 10:19:43 EDT 2007


On Wednesday 02 May 2007 10:00:58 Charles R Harris wrote:
> On 5/2/07, Pierre GM <pgmdevlist at gmail.com> wrote:
> > Mark,

> Or just array([1],'d')

Except that in that case you need to know in advance the input is a scalar to 
put it in a list. The atleast_1d should work better on any input.



More information about the NumPy-Discussion mailing list