Skip to content

Commit

Permalink
removed actor from pickled repr of Microgrid
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-steinke committed Apr 9, 2024
1 parent 8ea2035 commit de2a7ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vessim/cosim.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __getstate__(self) -> dict:
"""Returns a Dict with the current state of the microgrid for monitoring."""
state = copy(self.__dict__)
state["controllers"] = [] # controllers are not needed and often not pickleable
state["actor"] = [] # actor info can be supplied through Actor.state()
return state

def finalize(self):
Expand Down

0 comments on commit de2a7ac

Please sign in to comment.