diff --git a/flatland/utils/rendertools.py b/flatland/utils/rendertools.py index d361957294da6d6de1532ae64143909d6a789d97..bd4c02f83b313f31ca70329fc20bfc7fa73a46d8 100644 --- a/flatland/utils/rendertools.py +++ b/flatland/utils/rendertools.py @@ -293,7 +293,8 @@ class RenderTool(object): for visited_cell in prediction_dict[agent]: cell_coord = array(visited_cell[:2]) cell_coord_trans = np.matmul(cell_coord, rt.row_col_to_xy) + rt.x_y_half - self._draw_square(cell_coord_trans, 1 / (agent + 1.1), color, layer=1, opacity=100) # TODO : Track highlighting (Adrian) + self._draw_square(cell_coord_trans, 1 / (agent + 1.1), color, layer=1, opacity=100) + # TODO : Track highlighting (Adrian) def render_rail(self, spacing=False, rail_color="gray", curves=True, arrows=False): diff --git a/notebooks/Scene_Editor.ipynb b/notebooks/Scene_Editor.ipynb index 3a95729f000a32c3bc9db7f414ac3922c50b0931..38024cc6673858eb6047bd34c030a0b8977ce42b 100644 --- a/notebooks/Scene_Editor.ipynb +++ b/notebooks/Scene_Editor.ipynb @@ -9,22 +9,9 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "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>\"))" @@ -32,12 +19,12 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from flatland.utils.editor import EditorMVC\n", - "mvc = EditorMVC(sGL=\"PIL\" ) " + "mvc = EditorMVC(sGL=\"PILSVG\" ) " ] }, { @@ -62,26 +49,11 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": { "scrolled": false }, - "outputs": [ - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "2e206d6a7c254d7e816cd6e3694ba147", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "HBox(children=(Canvas(), VBox(children=(Text(value='temp.pkl', description='Filename'), Button(description='Re…" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "mvc.view.display()" ]