Skip to content
Snippets Groups Projects
Commit 29e41c88 authored by hagrid67's avatar hagrid67
Browse files

fixed flake8 whitespace

parent 3fb9336b
No related branches found
No related tags found
No related merge requests found
...@@ -534,7 +534,7 @@ class RailEnv(Environment): ...@@ -534,7 +534,7 @@ class RailEnv(Environment):
self.agents_handles.append(max(self.agents_handles + [-1]) + 1) # max(handles) + 1, starting at 0 self.agents_handles.append(max(self.agents_handles + [-1]) + 1) # max(handles) + 1, starting at 0
self.agents_direction.append(0) self.agents_direction.append(0)
self.agents_target.append(rcPos) # set the target to the origin initially self.agents_target.append(rcPos) # set the target to the origin initially
self.number_of_agents += 1 self.number_of_agents += 1
self.check_agent_lists() self.check_agent_lists()
return iAgent return iAgent
......
...@@ -87,7 +87,7 @@ class JupEditor(object): ...@@ -87,7 +87,7 @@ class JupEditor(object):
self.env.agents_target[self.iAgent] = rcCell self.env.agents_target[self.iAgent] = rcCell
self.drawMode = "Origin" self.drawMode = "Origin"
#self.log("agent", self.drawMode, self.iAgent, rcCell) # self.log("agent", self.drawMode, self.iAgent, rcCell)
self.redraw() self.redraw()
...@@ -265,17 +265,14 @@ class JupEditor(object): ...@@ -265,17 +265,14 @@ class JupEditor(object):
else: else:
self.log("thread already present") self.log("thread already present")
def bg_updater(self): def bg_updater(self):
try: try:
for i in range(20): for i in range(20):
#self.log("step ", i) # self.log("step ", i)
self.step_event() self.step_event()
time.sleep(0.2) time.sleep(0.2)
finally: finally:
self.thread = None self.thread = None
def fix_env(self): def fix_env(self):
self.env.width = self.env.rail.width self.env.width = self.env.rail.width
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment