Skip to content

Commit

Permalink
Merge pull request #206 from Impelon/patch-1
Browse files Browse the repository at this point in the history
Fix excluding actors from pickled `Microgrid` representation
  • Loading branch information
marvin-steinke authored May 13, 2024
2 parents a7ed1df + e963e23 commit f5af145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vessim/cosim.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,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()
state["actors"] = [] # actor info can be supplied through Actor.state()
return state

def finalize(self):
Expand Down

0 comments on commit f5af145

Please sign in to comment.