From 9aa13034850a7d8f28820f702d022aee47dee9cf Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Tue, 4 Jun 2019 21:07:43 +0200
Subject: [PATCH] editor bug fix

---
 flatland/utils/editor.py |  2 +-
 notebooks/Editor2.ipynb  | 22 ++++++++++++++++++----
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/flatland/utils/editor.py b/flatland/utils/editor.py
index e22e15af..2adbf6bc 100644
--- a/flatland/utils/editor.py
+++ b/flatland/utils/editor.py
@@ -160,7 +160,7 @@ class View(object):
             *self.lwButtons,
             # self.wRegenSize,
             # self.wRegenNAgents,
-            self.wProg_steps,
+            # self.wProg_steps,
             self.wTab])
 
         self.wMain = HBox([self.wImage, self.wVbox_controls])
diff --git a/notebooks/Editor2.ipynb b/notebooks/Editor2.ipynb
index 9d6e41c9..c3e52478 100644
--- a/notebooks/Editor2.ipynb
+++ b/notebooks/Editor2.ipynb
@@ -78,7 +78,7 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022E68851F98> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x00000228826E5048> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
       "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
       "Clear rails\n"
      ]
@@ -123,7 +123,7 @@
     {
      "data": {
       "application/vnd.jupyter.widget-view+json": {
-       "model_id": "3919c0bba981455285a93e045e305a05",
+       "model_id": "a70b4e1bbe8a41cc85af8e0073862bf3",
        "version_major": 2,
        "version_minor": 0
       },
@@ -138,7 +138,21 @@
      "name": "stdout",
      "output_type": "stream",
      "text": [
-      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022E6919E630> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022882FA48D0> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x000002288301CEB8> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x000002288318CD30> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022883001D30> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022882FCC438> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022886C20668> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
+      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
+      "complex_rail_generator: num_agents > nr_start_goal, changing num_agents\n",
+      "complex_rail_generator: num_agents > nr_start_goal, changing num_agents\n",
+      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022882DF7518> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
       "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n"
      ]
     }
@@ -157,7 +171,7 @@
     {
      "data": {
       "application/vnd.jupyter.widget-view+json": {
-       "model_id": "b91a94da22c846808020ab2aa1bc5ba7",
+       "model_id": "8fb6b8a5c8374de29ab80c6b62cd8fd9",
        "version_major": 2,
        "version_minor": 0
       },
-- 
GitLab