Skip to content

Commit

Permalink
additional comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Howuhh committed Jul 10, 2024
1 parent 3b163c2 commit 4849c27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xminigrid/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def step(self, params, timestep, action):
# Yes, these are a bit stupid, but a tmp workaround to not write an actual system for spaces.
# May be, in the future, I will port the entire API to some existing one, like functional Gymnasium.
# For now, faster to do this stuff with dicts instead...
# NB: if you do not want to use this (due to the dicts as obs),
# just get needed parts from the original TimeStep and State dataclasses
class DirectionObsWrapper(Wrapper):
def observation_shape(self, params):
base_shape = self._env.observation_shape(params)
Expand Down

0 comments on commit 4849c27

Please sign in to comment.