From 91a5e43e3f15175998c9f39654077e48905925c7 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Wed, 19 Jun 2019 08:05:58 +0200
Subject: [PATCH] Observation switch removed

---
 flatland/utils/editor.py     | 16 ++--------------
 notebooks/Scene_Editor.ipynb |  2 +-
 2 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/flatland/utils/editor.py b/flatland/utils/editor.py
index 61bdd49d..6137a07f 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 9ce65953..cf4deebb 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
       },
-- 
GitLab