You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sampling from the action space and converting these actions into serializable dicts so they can be loaded from disc later, we will occasionally get results from the sort {"change_bus": {}} which is a do-nothing action and should be {}. Since grid2op 1.9, this type of action is not supported as input to the environment and raises an exception
How to reproduce
import grid2op
def test_action_space_sampling() -> None:
env = grid2op.make("l2rpn_case14_sandbox")
for _ in range(10000):
act_dict = env.action_space.sample().as_serializable_dict()
env.action_space(act_dict)
Current output
The test raises an exception
Expected output
The test succeeds.
The text was updated successfully, but these errors were encountered:
Environment
1.9.3
ubuntu16.04
Bug description
When sampling from the action space and converting these actions into serializable dicts so they can be loaded from disc later, we will occasionally get results from the sort
{"change_bus": {}}
which is a do-nothing action and should be{}
. Since grid2op 1.9, this type of action is not supported as input to the environment and raises an exceptionHow to reproduce
Current output
Expected output
The text was updated successfully, but these errors were encountered: