浏览代码

fix pre-commit

Rodrigo Perez-Vicente 2 年之前
父节点
当前提交
680f272bff
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      gym_minigrid/manual_control.py
  2. 3 3
      gym_minigrid/minigrid.py

+ 1 - 1
gym_minigrid/manual_control.py

@@ -111,7 +111,7 @@ if __name__ == "__main__":
 
     window = Window("gym_minigrid - " + args.env)
     window.reg_key_handler(lambda event: key_handler(env, window, event))
-    
+
     seed = None if args.seed == -1 else args.seed
     reset(env, window, seed)
 

+ 3 - 3
gym_minigrid/minigrid.py

@@ -1514,8 +1514,8 @@ class MiniGridEnv(gym.Env):
 
         Args:
 
-            highlight (bool): If true, the agent's field of view or point of view is higlighted with a lighter gray color.
-            tile_size (int): How many pixels will form a tile from the NxM grid. 
+            highlight (bool): If true, the agent's field of view or point of view is highlighted with a lighter gray color.
+            tile_size (int): How many pixels will form a tile from the NxM grid.
             agent_pov (bool): If true, the rendered frame will only contain the point of view of the agent.
 
         Returns:
@@ -1523,7 +1523,7 @@ class MiniGridEnv(gym.Env):
             frame (np.ndarray): A frame of type numpy.ndarray with shape (x, y, 3) representing RGB values for the x-by-y pixel image.
 
         """
-        
+
         if agent_pov:
             return self.get_pov_render(tile_size)
         else: