MCPcopy Create free account
hub / github.com/TPCD/DCCL / __init__

Method __init__

project_utils/visualization_utils.py:1077–1088  ·  view source on GitHub ↗
(self, fields=None, win=None, env=None, opts={}, update_type=valid_update_types[0],
                 port=8097, server="localhost")

Source from the content-addressed store, hash-verified

1075 valid_update_types = ['REPLACE', 'APPEND']
1076
1077 def __init__(self, fields=None, win=None, env=None, opts={}, update_type=valid_update_types[0],
1078 port=8097, server="localhost"):
1079
1080 super(VisdomTextLogger, self).__init__(fields, win, env, opts, port, server)
1081 self.text = ''
1082
1083 if update_type not in self.valid_update_types:
1084 raise ValueError("update type '{}' not found. Must be one of {}".format(
1085 update_type, self.valid_update_types))
1086 self.update_type = update_type
1087
1088 self.viz_logger = self._viz_prototype(self.viz.text)
1089
1090 def log(self, msg, *args, **kwargs):
1091 text = msg

Callers

nothing calls this directly

Calls 2

_viz_prototypeMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected