From 38db2dc25947db6be7497e6424726135926ffd4a Mon Sep 17 00:00:00 2001 From: Glynn Chaldecott Date: Fri, 8 Mar 2024 10:03:58 +0000 Subject: [PATCH 1/2] fix: removed env_id from make statement, as nolonger supported --- bindsnet/environment/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindsnet/environment/environment.py b/bindsnet/environment/environment.py index aa893693..6c48f6c3 100644 --- a/bindsnet/environment/environment.py +++ b/bindsnet/environment/environment.py @@ -89,7 +89,7 @@ def __init__( 2D inputs. """ self.name = name - self.env = gym.make(env_id=name) # , render_mode=render_mode) + self.env = gym.make(name) # , render_mode=render_mode) self.action_space = self.env.action_space self.encoder = encoder From e2669de662e4ef6fda00b8a8509d3753fad1033b Mon Sep 17 00:00:00 2001 From: Glynn Chaldecott Date: Fri, 8 Mar 2024 10:53:30 +0000 Subject: [PATCH 2/2] fix: added render mode back in, was commented for some reason --- bindsnet/environment/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindsnet/environment/environment.py b/bindsnet/environment/environment.py index 6c48f6c3..d10c4ed1 100644 --- a/bindsnet/environment/environment.py +++ b/bindsnet/environment/environment.py @@ -89,7 +89,7 @@ def __init__( 2D inputs. """ self.name = name - self.env = gym.make(name) # , render_mode=render_mode) + self.env = gym.make(id=name, render_mode=render_mode) self.action_space = self.env.action_space self.encoder = encoder