Permalink
Browse files

API update involving map and load-balancing

  • Loading branch information...
1 parent 02c97fe commit 498a93f13d89558c689414c2020b5504a6a5f11a @minrk minrk committed Feb 25, 2011
@@ -147,9 +147,9 @@ def getObject(self):
if globals().has_key('numpy') and typeDescriptor == 'ndarray':
result = numpy.frombuffer(self.serialized.getData(), dtype = self.serialized.metadata['dtype'])
result.shape = self.serialized.metadata['shape']
- # This is a hack to make the array writable. We are working with
+ # numpy arrays with frombuffer are read-only. We are working with
# the numpy folks to address this issue.
- result = result.copy()
+ # result = result.copy()
elif typeDescriptor == 'pickle':
result = pickle.loads(self.serialized.getData())
elif typeDescriptor in ('bytes', 'buffer'):
Oops, something went wrong.

0 comments on commit 498a93f

Please sign in to comment.