From e19db89556a92889887ecade1488989d3abb81a6 Mon Sep 17 00:00:00 2001 From: sp Date: Thu, 26 Sep 2024 16:04:26 +0200 Subject: [PATCH] renamed playground env --- .../{GSW_Playground.ipynb => Playground.ipynb} | 4 ++-- .../environments/Minigrid/minigrid/__init__.py | 14 +++++++------- .../envs/{GSW_Playground.py => Playground.py} | 0 .../Minigrid/minigrid/envs/__init__.py | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) rename notebooks/{GSW_Playground.ipynb => Playground.ipynb} (99%) rename notebooks/environments/Minigrid/minigrid/envs/{GSW_Playground.py => Playground.py} (100%) diff --git a/notebooks/GSW_Playground.ipynb b/notebooks/Playground.ipynb similarity index 99% rename from notebooks/GSW_Playground.ipynb rename to notebooks/Playground.ipynb index 59a39ff..2281826 100644 --- a/notebooks/GSW_Playground.ipynb +++ b/notebooks/Playground.ipynb @@ -281,8 +281,8 @@ " return [1.0] * 7\n", "\n", "def main():\n", - " # Edit 'environments/Minigrid/minigrid/envs/GSW_Playground.py' to alter the environment\n", - " env = \"MiniGrid-GSW-v0\"\n", + " # Edit 'environments/Minigrid/minigrid/envs/Playground.py' to alter the environment\n", + " env = \"MiniGrid-Playground-v0\"\n", "\n", " # TODO Change the safety specification\n", " formula = \"Pmax=? [G !AgentIsOnLava]\"\n", diff --git a/notebooks/environments/Minigrid/minigrid/__init__.py b/notebooks/environments/Minigrid/minigrid/__init__.py index 5ec5aaf..255705a 100644 --- a/notebooks/environments/Minigrid/minigrid/__init__.py +++ b/notebooks/environments/Minigrid/minigrid/__init__.py @@ -22,11 +22,11 @@ except Exception: # nosec def register_minigrid_envs(): - # GSW Playground + # Playground # ---------------------------------------- register( - id="MiniGrid-GSW-v0", + id="MiniGrid-Playground-v0", entry_point="minigrid.envs:Playground", kwargs={}, ) @@ -206,7 +206,7 @@ def register_minigrid_envs(): ) - + # WindyCity # ---------------------------------------- @@ -812,10 +812,10 @@ def register_minigrid_envs(): # Playground # ---------------------------------------- - register( - id="MiniGrid-Playground-v0", - entry_point="minigrid.envs:PlaygroundEnv", - ) + #register( + # id="MiniGrid-Playground-v0", + # entry_point="minigrid.envs:PlaygroundEnv", + #) # PutNear # ---------------------------------------- diff --git a/notebooks/environments/Minigrid/minigrid/envs/GSW_Playground.py b/notebooks/environments/Minigrid/minigrid/envs/Playground.py similarity index 100% rename from notebooks/environments/Minigrid/minigrid/envs/GSW_Playground.py rename to notebooks/environments/Minigrid/minigrid/envs/Playground.py diff --git a/notebooks/environments/Minigrid/minigrid/envs/__init__.py b/notebooks/environments/Minigrid/minigrid/envs/__init__.py index fa8a7f7..3b68935 100644 --- a/notebooks/environments/Minigrid/minigrid/envs/__init__.py +++ b/notebooks/environments/Minigrid/minigrid/envs/__init__.py @@ -15,7 +15,7 @@ from minigrid.envs.lavagap import LavaGapEnv from minigrid.envs.lavafaulty import LavaFaultyEnv from minigrid.envs.windycity import WindyCityEnv, WindyCityAdvEnv, WindyCity2Env, WindyCitySmallAdv from minigrid.envs.lavaslippery import LavaSlipperyEnv1, LavaSlipperyCliff, LavaSlipperyHill, LavaSlipperyMaze -from minigrid.envs.GSW_Playground import Playground +from minigrid.envs.Playground import Playground from minigrid.envs.adversary_debug import AdversaryDebug from minigrid.envs.adversary_simple import AdversarySimple from minigrid.envs.adversarydoorpickup import AdversaryDoorPickup @@ -30,7 +30,7 @@ from minigrid.envs.obstructedmaze import ( ObstructedMaze_Full, ObstructedMazeEnv, ) -from minigrid.envs.playground import PlaygroundEnv +#from minigrid.envs.playground import PlaygroundEnv from minigrid.envs.putnear import PutNearEnv from minigrid.envs.redbluedoors import RedBlueDoorEnv from minigrid.envs.unlock import UnlockEnv