Commit 7b7ece48 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix simple compatilibity bug with older versions of numpy (~1.3)

parent 0982ad40
......@@ -225,7 +225,8 @@ class PropertyArray(numpy.ndarray):
'std', 'sum', 'swapaxes', 'take', 'tofile', 'tolist',
'tostring', 'trace', 'transpose', 'var', 'view',
'__getitem__']:
locals()[method] = _wrap_method(method)
if hasattr(numpy.ndarray, method):
locals()[method] = _wrap_method(method)
class PropertyMap(object):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment