def __repr__(self): r = '%s(' % type(self).__name__ r += '%s' % len(self) r += ')' if self.nbytes: r += '\n nbytes: %s;' % _util.human_readable_size(self.nbytes) if self.cbytes: r += ' cbytes: %s;' % _util.human_readable_size(self.cbytes) if self.cratio: r += ' cratio: %.1f;' % self.cratio r += '\n data: %s.%s' % (type(self.data).__module__, type(self.data).__name__) return r
def __repr__(self): r = '%s(' % type(self).__name__ r += '%s' % len(self) if self.nbytes: r += ', nbytes=%s' % _util.human_readable_size(self.nbytes) if self.cbytes: r += ', cbytes=%s' % _util.human_readable_size(self.cbytes) if self.cratio: r += ', cratio=%.1f' % self.cratio r += ', data=%s.%s' % (type(self.data).__module__, type(self.data).__name__) r += ')' return r
def caption(self): r = '<%s' % type(self).__name__ r += ' shape=%s' % str(self.shape) r += ' dtype=%s' % str(self.dtype) if self.nbytes: r += '\n nbytes=%s' % _util.human_readable_size(self.nbytes) if self.cbytes: r += ' cbytes=%s' % _util.human_readable_size(self.cbytes) if self.cratio: r += ' cratio=%.1f' % self.cratio values_cls = type(self.values) r += '\n values=%s.%s' % (values_cls.__module__, values_cls.__name__) r += '>' return r
def caption(self): r = '<%s' % type(self).__name__ r += ' shape=%s' % str(self.shape) r += ' dtype=%s' % str(self.dtype) if self.chunks is not None: r += ' chunks=%s' % str(self.chunks) if self.nbytes: r += '\n nbytes=%s' % _util.human_readable_size(self.nbytes) if self.cbytes: r += ' cbytes=%s' % _util.human_readable_size(self.cbytes) if self.cratio: r += ' cratio=%.1f' % self.cratio if self.compression: r += '\n compression=%s' % self.compression if self.compression_opts is not None: r += ' compression_opts=%s' % self.compression_opts values_cls = type(self.values) r += '\n values=%s.%s' % (values_cls.__module__, values_cls.__name__) r += '>' return r
def __repr__(self): r = '%s(' % type(self).__name__ r += '%s' % str(self.shape) r += ', %s' % str(self.dtype) if self.chunks is not None: r += ', chunks=%s' % str(self.chunks) r += ')' if self.nbytes: r += '\n nbytes: %s;' % _util.human_readable_size(self.nbytes) if self.cbytes: r += ' cbytes: %s;' % _util.human_readable_size(self.cbytes) if self.cratio: r += ' cratio: %.1f;' % self.cratio if self.compression: r += '\n compression: %s;' % self.compression if self.compression_opts is not None: r += ' compression_opts: %s;' % self.compression_opts r += '\n data: %s.%s' % (type(self.data).__module__, type(self.data).__name__) return r
def __repr__(self): r = '%s(' % type(self).__name__ r += '%s' % str(self.shape) r += ', %s' % str(self.dtype) if self.nbytes: r += ', nbytes=%s' % _util.human_readable_size(self.nbytes) if self.cbytes: r += ', cbytes=%s' % _util.human_readable_size(self.cbytes) if self.cratio: r += ', cratio=%.1f' % self.cratio if self.cname: r += ', cname=%s' % self.cname if self.clevel is not None: r += ', clevel=%s' % self.clevel if self.shuffle is not None: r += ', shuffle=%s' % self.shuffle if self.chunks is not None: r += ', chunks=%s' % str(self.chunks) r += ', data=%s.%s' % (type(self.data).__module__, type(self.data).__name__) r += ')' return r