Hi, I've found that numarray.array doesn't check enough the input for non-regular objects. For example: In [95]: numarray.array([3., [4, 5.2]]) Out[95]: array([ 3. , 5.7096262]) but, In [96]: Numeric.array([3., [4, 5.2]]) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ? TypeError: bad argument type for built-in operation I find Numeric behaviour more appropriate. Regards, -- Francesc Alted
I logged this as a bug and I'll get to it as soon as I'm out of "numarray overhead reduction mode." Thanks! Todd Francesc Alted wrote:
Hi,
I've found that numarray.array doesn't check enough the input for non-regular objects. For example:
In [95]: numarray.array([3., [4, 5.2]]) Out[95]: array([ 3. , 5.7096262])
but,
In [96]: Numeric.array([3., [4, 5.2]]) --------------------------------------------------------------------------- TypeError Traceback (most recent call last)
?
TypeError: bad argument type for built-in operation
I find Numeric behaviour more appropriate.
Regards,
participants (2)
-
Francesc Alted
-
Todd Miller