Skip to content

Commit

Permalink
log net load
Browse files Browse the repository at this point in the history
  • Loading branch information
ahalev committed May 26, 2023
1 parent 336fd0d commit 01850ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pymgrid/envs/continuous/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def step(self, action):

def convert_action(self, action, to_microgrid=True):
net_load = self.compute_net_load()
self._microgrid_logger.log(net_load=net_load)

if to_microgrid:
relative_action = unflatten(self._nested_action_space, action)
Expand Down

0 comments on commit 01850ea

Please sign in to comment.