From e30b6c0e0476f8049f7f78ed9e09688aed5ba599 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 30 Jul 2023 18:15:51 +0200 Subject: [PATCH] Removed old code samples from meta mp docs --- fancy_gym/meta/goal_change_mp_wrapper.py | 13 ------------- .../meta/goal_endeffector_change_mp_wrapper.py | 13 ------------- fancy_gym/meta/goal_object_change_mp_wrapper.py | 13 ------------- 3 files changed, 39 deletions(-) diff --git a/fancy_gym/meta/goal_change_mp_wrapper.py b/fancy_gym/meta/goal_change_mp_wrapper.py index a8eabb5..41cd9be 100644 --- a/fancy_gym/meta/goal_change_mp_wrapper.py +++ b/fancy_gym/meta/goal_change_mp_wrapper.py @@ -9,19 +9,6 @@ class MPWrapper(BaseMetaworldMPWrapper): and no secondary objects or end effectors are altered at the start of an episode. You can verify this by executing the code below for your environment id and check if the output is non-zero at the same indices. - ```python - import fancy_gym - env = fancy_gym.make(env_id, 1) - print(env.reset() - env.reset()) - array([ 0. , 0. , 0. , 0. , 0, - 0 , 0 , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0 , 0 , 0 , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , !=0 , !=0 , !=0]) - ``` """ @property diff --git a/fancy_gym/meta/goal_endeffector_change_mp_wrapper.py b/fancy_gym/meta/goal_endeffector_change_mp_wrapper.py index c299597..ec89702 100644 --- a/fancy_gym/meta/goal_endeffector_change_mp_wrapper.py +++ b/fancy_gym/meta/goal_endeffector_change_mp_wrapper.py @@ -9,19 +9,6 @@ class MPWrapper(BaseMetaworldMPWrapper): and no secondary objects or end effectors are altered at the start of an episode. You can verify this by executing the code below for your environment id and check if the output is non-zero at the same indices. - ```python - import fancy_gym - env = fancy_gym.make(env_id, 1) - print(env.reset() - env.reset()) - array([ !=0 , !=0 , !=0 , 0. , 0., - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , !=0 , !=0 , - !=0 , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , !=0 , !=0 , !=0]) - ``` """ @property diff --git a/fancy_gym/meta/goal_object_change_mp_wrapper.py b/fancy_gym/meta/goal_object_change_mp_wrapper.py index ae667a6..b42f142 100644 --- a/fancy_gym/meta/goal_object_change_mp_wrapper.py +++ b/fancy_gym/meta/goal_object_change_mp_wrapper.py @@ -9,19 +9,6 @@ class MPWrapper(BaseMetaworldMPWrapper): and no secondary objects or end effectors are altered at the start of an episode. You can verify this by executing the code below for your environment id and check if the output is non-zero at the same indices. - ```python - import fancy_gym - env = fancy_gym.make(env_id, 1) - print(env.reset() - env.reset()) - array([ 0. , 0. , 0. , 0. , !=0, - !=0 , !=0 , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , !=0 , !=0 , !=0 , - 0. , 0. , 0. , 0. , 0. , - 0. , 0. , 0. , 0. , 0. , - 0. , !=0 , !=0 , !=0]) - ``` """ @property