From 7e62b9f400db61ad8f9b1a34d85bc188a2ef2ea8 Mon Sep 17 00:00:00 2001 From: Reggie McLean Date: Wed, 4 Oct 2023 14:12:04 -0400 Subject: [PATCH 1/3] Adding render mode to creating of single envs --- metaworld/envs/mujoco/env_dict.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metaworld/envs/mujoco/env_dict.py b/metaworld/envs/mujoco/env_dict.py index d11358451..99cbc53a9 100644 --- a/metaworld/envs/mujoco/env_dict.py +++ b/metaworld/envs/mujoco/env_dict.py @@ -401,7 +401,7 @@ def create_observable_goal_envs(): for env_name, env_cls in ALL_V2_ENVIRONMENTS.items(): d = {} - def initialize(env, seed=None): + def initialize(env, seed=None, render_mode=None): if seed is not None: st0 = np.random.get_state() np.random.seed(seed) @@ -410,6 +410,7 @@ def initialize(env, seed=None): env._partially_observable = False env._freeze_rand_vec = False env._set_task_called = True + env.render_mode = render_mode env.reset() env._freeze_rand_vec = True if seed is not None: From de4035fdce97575291653d4c37cd440f72c506dd Mon Sep 17 00:00:00 2001 From: Reggie McLean Date: Wed, 4 Oct 2023 14:16:29 -0400 Subject: [PATCH 2/3] fixing pre-commit --- .github/workflows/build-docs.yml | 2 +- docs/citation.md | 2 +- docs/conf.py | 1 - docs/introduction/installation.md | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index cf3029d48..30200dce7 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -38,4 +38,4 @@ jobs: - name: Upload to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: - folder: _build \ No newline at end of file + folder: _build diff --git a/docs/citation.md b/docs/citation.md index 0eb9128bc..c276c9c84 100644 --- a/docs/citation.md +++ b/docs/citation.md @@ -13,4 +13,4 @@ You can cite Metaworld as follows: primaryClass={cs.LG}, url={https://arxiv.org/abs/1910.10897} } -``` \ No newline at end of file +``` diff --git a/docs/conf.py b/docs/conf.py index aa1d9a960..39f056754 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,7 +20,6 @@ import metaworld - project = "Metaworld" copyright = "2023 Farama Foundation" author = "Farama Foundation" diff --git a/docs/introduction/installation.md b/docs/introduction/installation.md index 6227ed68f..8eb172a43 100644 --- a/docs/introduction/installation.md +++ b/docs/introduction/installation.md @@ -18,4 +18,4 @@ pip install -e . For users attempting to reproduce results found in the Meta-World paper please use this command: ``` pip install git+https://github.com/Farama-Foundation/Metaworld.git@04be337a12305e393c0caf0cbf5ec7755c7c8feb -``` \ No newline at end of file +``` From b453727962417328d3747f750738a7d06b1cdbfe Mon Sep 17 00:00:00 2001 From: Reggie McLean Date: Wed, 4 Oct 2023 14:28:06 -0400 Subject: [PATCH 3/3] Commented out things in docs/conf.py to pass pre-commit --- docs/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 39f056754..7f02f27f4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,9 +16,11 @@ # -- Project information ----------------------------------------------------- import os -from typing import Any, Dict -import metaworld +# import metaworld + +# from typing import Any, Dict + project = "Metaworld" copyright = "2023 Farama Foundation"