Commit d3fa8b86 authored by theos's avatar theos
Browse files

Added dtype kwarg to __array__() method of distributed_data_object

parent 2aa97ad8
......@@ -456,7 +456,7 @@ class distributed_data_object(object):
self.set_local_data(generator(self.distributor.local_shape), copy=copy)
self.hermitian = False
def __array__(self):
def __array__(self, dtype=None):
""" Returns the d2o's full data. """
return self.get_full_data()
Supports Markdown
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