Merge pull request #360 from nfirvine/develop
Allow MetaArray.__array__ to accept an optional dtype arg
This commit is contained in:
commit
78e218fe6c
@ -357,7 +357,7 @@ class MetaArray(object):
|
||||
else:
|
||||
return np.array(self._data)
|
||||
|
||||
def __array__(self):
|
||||
def __array__(self, dtype=None):
|
||||
## supports np.array(metaarray_instance)
|
||||
return self.asarray()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user