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