From d7ea1f80a00ecef1f60a9db884dc0ab4045da63f Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 23 Oct 2023 13:12:34 +0200 Subject: [PATCH] gym.Env actually does not want to known about render_mode --- fancy_gym/envs/classic_control/base_reacher/base_reacher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fancy_gym/envs/classic_control/base_reacher/base_reacher.py b/fancy_gym/envs/classic_control/base_reacher/base_reacher.py index a03115d..2463134 100644 --- a/fancy_gym/envs/classic_control/base_reacher/base_reacher.py +++ b/fancy_gym/envs/classic_control/base_reacher/base_reacher.py @@ -14,8 +14,8 @@ class BaseReacherEnv(gym.Env): Base class for all reaching environments. """ - def __init__(self, n_links: int, random_start: bool = True, allow_self_collision: bool = False, render_mode: str = None, **kwargs): - super().__init__(render_mode=render_mode, **kwargs) + def __init__(self, n_links: int, random_start: bool = True, allow_self_collision: bool = False, render_mode: str = None): + super().__init__() self.link_lengths = np.ones(n_links) self.n_links = n_links self._dt = 0.01