Browse Source

revert return_info step

Rodrigo Perez-Vicente 2 years ago
parent
commit
35c500cf05
1 changed files with 1 additions and 4 deletions
  1. 1 4
      gym_minigrid/minigrid.py

+ 1 - 4
gym_minigrid/minigrid.py

@@ -752,10 +752,7 @@ class MiniGridEnv(gym.Env):
         # Return first observation
         obs = self.gen_obs()
 
-        if not return_info:
-            return obs
-        else:
-            return obs, {}
+        return obs
 
     def hash(self, size=16):
         """Compute a hash that uniquely identifies the current state of the environment.