(self, fields=None, win=None, env=None, opts={}, update_type=valid_update_types[0],
port=8097, server="localhost")
| 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 |
nothing calls this directly
no test coverage detected