MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / to_dict

Method to_dict

src/pymgrid/utils/logger.py:38–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 self._log_length += 1
37
38 def to_dict(self):
39 return self.data.copy()
40
41 def raw(self):
42 return {k: list(map(float, v)) for k, v in self.data.items()}

Callers 6

from_rawMethod · 0.45
_arr_representerFunction · 0.45
_extract_action_spacesFunction · 0.45
_set_slack_moduleMethod · 0.45
_get_obsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected