Browse Source

disabled default shield creation on reset

refactoring
sp 11 months ago
parent
commit
aa2cec0e0f
  1. 2
      examples/shields/rl/rllibutils.py

2
examples/shields/rl/rllibutils.py

@ -86,7 +86,7 @@ class MiniGridShieldingWrapper(gym.core.Wrapper):
env,
shield_creator : MiniGridShieldHandler,
shield_query_creator,
create_shield_at_reset=True,
create_shield_at_reset=False,
mask_actions=True):
super(MiniGridShieldingWrapper, self).__init__(env)
self.max_available_actions = env.action_space.n

Loading…
Cancel
Save