Neal Becker wrote:
> What's the problem here?
> 
>  print np.concatenate (np.ones (10, dtype=complex), np.zeros (10, 
> dtype=complex))
> TypeError: only length-1 arrays can be converted to Python scalars

You should enclose the arrays you concatenate into a tuple: 
np.concatenate((a,b)).

r.
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to