Exemplo n.º 1
0
Arquivo: ctable.py Projeto: 87/carray
    def __repr__(self):
        nbytes, cbytes, cratio = self._get_stats()
        snbytes = utils.human_readable_size(nbytes)
        scbytes = utils.human_readable_size(cbytes)
        fullrepr = """ctable(%s, %s) nbytes: %s; cbytes: %s; ratio: %.2f
  cparams := %r
%s""" % (self.shape, self.dtype.str, snbytes, scbytes, cratio, self.cparams,
         str(self))
        return fullrepr
Exemplo n.º 2
0
Arquivo: ctable.py Projeto: 87/carray
    def __repr__(self):
        nbytes, cbytes, cratio = self._get_stats()
        snbytes = utils.human_readable_size(nbytes)
        scbytes = utils.human_readable_size(cbytes)
        fullrepr = """ctable(%s, %s) nbytes: %s; cbytes: %s; ratio: %.2f
  cparams := %r
%s""" % (self.shape, self.dtype.str, snbytes, scbytes, cratio,
         self.cparams, str(self))
        return fullrepr
Exemplo n.º 3
0
 def __repr__(self):
     nbytes, cbytes, cratio = self._get_stats()
     snbytes = utils.human_readable_size(nbytes)
     scbytes = utils.human_readable_size(cbytes)
     header = "ctable(%s, %s)\n" % (self.shape, self.dtype)
     header += "  nbytes: %s; cbytes: %s; ratio: %.2f\n" % (snbytes, scbytes, cratio)
     header += "  cparams := %r\n" % self.cparams
     if self.rootdir:
         header += "  rootdir := '%s'\n" % self.rootdir
     fullrepr = header + str(self)
     return fullrepr