Merge pull request #360 from nfirvine/develop

Allow MetaArray.__array__ to accept an optional dtype arg
This commit is contained in:
Ogi Moore 2019-11-20 22:17:18 -08:00 committed by GitHub
commit 78e218fe6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()