MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __str__

Method __str__

utils/misc.py:91–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.avg = self.sum / self.count
90
91 def __str__(self):
92 if self.name == "Lr":
93 fmtstr = "{name}={val" + self.fmt + "}"
94 else:
95 fmtstr = "{name}={val" + self.fmt + "} ({avg" + self.fmt + "})"
96 return fmtstr.format(**self.__dict__)
97
98
99class ProgressMeter(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected