Skip to content
Snippets Groups Projects
Commit 1154e8da authored by adrian_egli's avatar adrian_egli
Browse files

Merge branch 'editor_observation_switch_removed' into 'master'

Observation switch removed

See merge request flatland/flatland!71
parents 2f23359a 91a5e43e
No related branches found
No related tags found
No related merge requests found
...@@ -74,10 +74,6 @@ class View(object): ...@@ -74,10 +74,6 @@ class View(object):
self.wDebug_move = Checkbox(description="Debug mouse move") self.wDebug_move = Checkbox(description="Debug mouse move")
self.wDebug_move.observe(self.controller.setDebugMove, names="value") self.wDebug_move.observe(self.controller.setDebugMove, names="value")
# Checkbox for rendering observations
self.wShowObs = Checkbox(description="Show Agent Observations")
self.wShowObs.observe(self.controller.refresh, names="value")
# This is like a cell widget where loggin goes # This is like a cell widget where loggin goes
self.wOutput = Output() self.wOutput = Output()
...@@ -108,8 +104,7 @@ class View(object): ...@@ -108,8 +104,7 @@ class View(object):
for i, title in enumerate(tab_contents): for i, title in enumerate(tab_contents):
self.wTab.set_title(i, title) self.wTab.set_title(i, title)
self.wTab.children = [ self.wTab.children = [
VBox([self.wRegenSizeWidth, self.wRegenSizeHeight, self.wRegenNAgents]), VBox([self.wRegenSizeWidth, self.wRegenSizeHeight, self.wRegenNAgents])
VBox([self.wShowObs]),
] ]
# abbreviated description of buttons and the methods they call # abbreviated description of buttons and the methods they call
...@@ -161,7 +156,7 @@ class View(object): ...@@ -161,7 +156,7 @@ class View(object):
self.oRT.renderEnv(spacing=False, arrows=False, sRailColor="gray", agents=True, self.oRT.renderEnv(spacing=False, arrows=False, sRailColor="gray", agents=True,
show=False, iSelectedAgent=self.model.iSelectedAgent, show=False, iSelectedAgent=self.model.iSelectedAgent,
show_observations=self.show_observations()) show_observations=False)
img = self.oRT.getImage() img = self.oRT.getImage()
self.wImage.data = img self.wImage.data = img
...@@ -196,13 +191,6 @@ class View(object): ...@@ -196,13 +191,6 @@ class View(object):
else: else:
print(*args, **kwargs) print(*args, **kwargs)
def show_observations(self):
''' returns whether to show observations - boolean '''
if self.wShowObs.value:
return True
else:
return False
class Controller(object): class Controller(object):
""" """
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
{ {
"data": { "data": {
"application/vnd.jupyter.widget-view+json": { "application/vnd.jupyter.widget-view+json": {
"model_id": "155b149b140940acbc810a986a4c10f1", "model_id": "a1b27bcebefc4ddebb5bde8297d52d9e",
"version_major": 2, "version_major": 2,
"version_minor": 0 "version_minor": 0
}, },
......
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