Show More
@@ -108,7 +108,7 b' class CannedFunction(CannedObject):' | |||||
108 | class CannedArray(CannedObject): |
|
108 | class CannedArray(CannedObject): | |
109 | def __init__(self, obj): |
|
109 | def __init__(self, obj): | |
110 | self.shape = obj.shape |
|
110 | self.shape = obj.shape | |
111 | self.dtype = obj.dtype |
|
111 | self.dtype = obj.dtype.descr if obj.dtype.fields else obj.dtype.str | |
112 | if sum(obj.shape) == 0: |
|
112 | if sum(obj.shape) == 0: | |
113 | # just pickle it |
|
113 | # just pickle it | |
114 | self.buffers = [pickle.dumps(obj, -1)] |
|
114 | self.buffers = [pickle.dumps(obj, -1)] |
General Comments 0
You need to be logged in to leave comments.
Login now