From 663d6181312042a8a1b228e99f75afe9b004c232 Mon Sep 17 00:00:00 2001 From: hagrid67 <jdhwatson@gmail.com> Date: Wed, 10 Apr 2019 21:39:08 +0100 Subject: [PATCH] plot the first transition in plotPath --- flatland/utils/rendertools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatland/utils/rendertools.py b/flatland/utils/rendertools.py index 5ec756f..c7118dd 100644 --- a/flatland/utils/rendertools.py +++ b/flatland/utils/rendertools.py @@ -286,7 +286,7 @@ class RenderTool(object): if visitDest is not None: visit = visitDest xyPrev = None - while visit.prev is not None: + while visit is not None: xy = np.matmul(visit.rc, rt.grc2xy) + rt.xyHalf if xyPrev is not None: dx, dy = (xyPrev - xy) / 20 -- GitLab