Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_raw
Method · 0.45
_arr_representer
Function · 0.45
_extract_action_spaces
Function · 0.45
_extract_observation_spaces
Function · 0.45
_set_slack_module
Method · 0.45
_get_obs
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected