You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I pass two ndarrays with string dtype to array_equal, it blows up:
In [151]: a = np.asarray(["a", "b"])
In [152]: a
Out[152]:
array(['a', 'b'],
dtype='|S1')
In [153]: np.array_equal(a, a)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-153-8f762db9db16> in <module>()
----> 1 np.array_equal(a, a)
/home/njs/.user-python2.7-64bit/lib/python2.7/site-packages/numpy/core/numeric.pyc in array_equal(a1, a2)
1975 if a1.shape != a2.shape:
1976 return False
-> 1977 return bool(logical_and.reduce(equal(a1,a2).ravel()))
1978
1979 def array_equiv(a1, a2):
AttributeError: 'NotImplementedType' object has no attribute 'ravel'
Activity
njsmith commentedon Feb 25, 2013
(confirmed with 1.8.0.dev-17774a6)
charris commentedon May 13, 2013
Closed by #3322.