##// END OF EJS Templates
include dtype itself in metadata, not str representation...
MinRK -
Show More
@@ -110,7 +110,7 b' class SerializeIt(object):'
110 self.obj = numpy.ascontiguousarray(self.obj, dtype=None)
110 self.obj = numpy.ascontiguousarray(self.obj, dtype=None)
111 self.typeDescriptor = 'ndarray'
111 self.typeDescriptor = 'ndarray'
112 self.metadata = {'shape':self.obj.shape,
112 self.metadata = {'shape':self.obj.shape,
113 'dtype':self.obj.dtype.str}
113 'dtype':self.obj.dtype}
114 elif isinstance(self.obj, bytes):
114 elif isinstance(self.obj, bytes):
115 self.typeDescriptor = 'bytes'
115 self.typeDescriptor = 'bytes'
116 self.metadata = {}
116 self.metadata = {}
General Comments 0
You need to be logged in to leave comments. Login now