[Numpy-tickets] [NumPy] #1013: Ufunc generates AttributeError on object arrays
NumPy
numpy-tickets@scipy....
Fri Feb 20 09:39:56 CST 2009
#1013: Ufunc generates AttributeError on object arrays
--------------------+-------------------------------------------------------
Reporter: wesm | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.3.0
Component: Other | Version: none
Severity: normal | Keywords:
--------------------+-------------------------------------------------------
This error is very unintuitive for end-users, arrays formed from SQL query
results can frequently end up as object arrays by accident.
In [15]: arr = np.random.randn(100).astype(object)
In [16]: np.log(arr)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
H:\workspace\Python\src\<ipython console> in <module>()
AttributeError: log
Same AttributeError is raised for other ufuncs
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/1013>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list