diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py index a6835902ae3451848b064ea72cfee21efe3c1c33..f8920afd8e39836e2be72aa32a3ebb4d926560f7 100644 --- a/flatland/utils/graphics_pil.py +++ b/flatland/utils/graphics_pil.py @@ -221,7 +221,8 @@ class PILGL(GraphicsLayer): def save_image(self, filename): """ Renders the current scene into a image file - :param filename: filename where to store the rendering output_generator (supported image format *.bmp , .. , *.png) + :param filename: filename where to store the rendering output_generator + (supported image format *.bmp , .. , *.png) """ img = self.alpha_composite_layers() img.save(filename) diff --git a/notebooks/Scene_Editor.ipynb b/notebooks/Scene_Editor.ipynb index 1eeceb5720204070fc555fcc591d4177a7988cf6..877f82001dfeef3732f824e06899f62f68ba85d4 100644 --- a/notebooks/Scene_Editor.ipynb +++ b/notebooks/Scene_Editor.ipynb @@ -11,20 +11,7 @@ "cell_type": "code", "execution_count": 1, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "<style>.container { width:95% !important; }</style>" - ], - "text/plain": [ - "<IPython.core.display.HTML object>" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "from IPython.core.display import display, HTML\n", "display(HTML(\"<style>.container { width:95% !important; }</style>\"))" @@ -70,7 +57,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "8f5b5ed248ec4cd7a4410ff504b67949", + "model_id": "bd784815032c4d89803fa93399def9cf", "version_major": 2, "version_minor": 0 }, @@ -80,24 +67,6 @@ }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "redrawing outside\n", - "Output()\n", - "redrawing outside\n", - "Output()\n", - "redrawing outside\n", - "Output(outputs=({'output_type': 'stream', 'text': 'load file: complex_scene.pkl\\nRegenerate size 50 20\\n', 'name': 'stdout'},))\n", - "redrawing outside\n", - "Output(outputs=({'output_type': 'stream', 'text': 'load file: complex_scene.pkl\\nRegenerate size 50 20\\n', 'name': 'stdout'},))\n", - "redrawing outside\n", - "Output(outputs=({'output_type': 'stream', 'text': 'load file: complex_scene.pkl\\nRegenerate size 50 20\\n', 'name': 'stdout'},))\n", - "redrawing outside\n", - "Output(outputs=({'output_type': 'stream', 'text': 'load file: complex_scene.pkl\\nRegenerate size 50 20\\n', 'name': 'stdout'},))\n" - ] } ], "source": [