From: Todd M. <jm...@st...> - 2003-11-20 15:08:34
|
On Wed, 2003-11-19 at 22:14, Edward C. Jones wrote: > Here is the program: > > #! /usr/bin/env python > import numarray > arr1 = numarray.zeros([3,2,1]) > arr2 = numarray.zeros([3,2,1]) > arr2[0] = arr1 > > and here is the error message: > > TypeError: _copyFromAndConvert: non-numarray input. > > Should this program give this error message? No. I agree that's a pretty bad message. Here's what CVS does now: Traceback (most recent call last): .. ValueError: Can't use non-rank-0 array as a scalar. Even the new message is a little obscure; feel free to suggest improvements... Regards, Todd > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion -- Todd Miller Space Telescope Science Institute 3700 San Martin Drive Baltimore MD, 21030 (410) 338 - 4576 |