From ff5bda1274cf33be445430895fa5b612cf3d1a7b Mon Sep 17 00:00:00 2001 From: Itamar Mishani Date: Tue, 31 Dec 2024 16:25:50 -0500 Subject: [PATCH] feat(vector-gymnasium): fixing 'call' method -- getattr(self.env...) to getatrr(self._env) --- mani_skill/vector/wrappers/gymnasium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mani_skill/vector/wrappers/gymnasium.py b/mani_skill/vector/wrappers/gymnasium.py index 96e19d706..6d1496e85 100644 --- a/mani_skill/vector/wrappers/gymnasium.py +++ b/mani_skill/vector/wrappers/gymnasium.py @@ -159,7 +159,7 @@ def close(self): return self._env.close() def call(self, name: str, *args, **kwargs): - function = getattr(self.env, name) + function = getattr(self._env, name) return function(*args, **kwargs) def get_attr(self, name: str):