diff --git a/flatland/utils/editor.py b/flatland/utils/editor.py index 61bdd49db743bb3745f08361874161f78ffc821c..6137a07ff83f296b766d6d5bac0dd67fb36d966a 100644 --- a/flatland/utils/editor.py +++ b/flatland/utils/editor.py @@ -74,10 +74,6 @@ class View(object): self.wDebug_move = Checkbox(description="Debug mouse move") 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 self.wOutput = Output() @@ -108,8 +104,7 @@ class View(object): for i, title in enumerate(tab_contents): self.wTab.set_title(i, title) self.wTab.children = [ - VBox([self.wRegenSizeWidth, self.wRegenSizeHeight, self.wRegenNAgents]), - VBox([self.wShowObs]), + VBox([self.wRegenSizeWidth, self.wRegenSizeHeight, self.wRegenNAgents]) ] # abbreviated description of buttons and the methods they call @@ -161,7 +156,7 @@ class View(object): self.oRT.renderEnv(spacing=False, arrows=False, sRailColor="gray", agents=True, show=False, iSelectedAgent=self.model.iSelectedAgent, - show_observations=self.show_observations()) + show_observations=False) img = self.oRT.getImage() self.wImage.data = img @@ -196,13 +191,6 @@ class View(object): else: 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): """ diff --git a/notebooks/Scene_Editor.ipynb b/notebooks/Scene_Editor.ipynb index 9ce65953aa3280702c46a4221bd8337d7f1ae85c..cf4deebb5d8689b7f593a9594c77cda33b8deab0 100644 --- a/notebooks/Scene_Editor.ipynb +++ b/notebooks/Scene_Editor.ipynb @@ -70,7 +70,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "155b149b140940acbc810a986a4c10f1", + "model_id": "a1b27bcebefc4ddebb5bde8297d52d9e", "version_major": 2, "version_minor": 0 },