MCPcopy Create free account
hub / github.com/Physical-Intelligence/openpi / format

Method format

scripts/train.py:36–38  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

34
35 class CustomFormatter(logging.Formatter):
36 def format(self, record):
37 record.levelname = level_mapping.get(record.levelname, record.levelname)
38 return super().format(record)
39
40 formatter = CustomFormatter(
41 fmt="%(asctime)s.%(msecs)03d [%(levelname)s] %(message)-80s (%(process)d:%(filename)s:%(lineno)s)",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected