From 32d983c54c524848d4e85a92dbf760bbde9260b1 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Mon, 17 Jun 2019 10:02:01 +0200
Subject: [PATCH] Rendering "nicified"

---
 flatland/utils/graphics_pil.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 89068b62..6c687667 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -83,7 +83,7 @@ class PILGL(GraphicsLayer):
         self.background_grid = np.zeros(shape=(self.width, self.height))
         for x in range(self.width):
             for y in range(self.height):
-                distance = int(np.ceil(np.sqrt(self.width**2.0 + self.height**2.0)))
+                distance = int(np.ceil(np.sqrt(self.width ** 2.0 + self.height ** 2.0)))
                 for rc in dTargets:
                     r = rc[1]
                     c = rc[0]
-- 
GitLab