From daac8c3f999657d72908627afb9823093383391a Mon Sep 17 00:00:00 2001 From: Thomas REMY Date: Tue, 28 May 2024 16:41:05 +0200 Subject: [PATCH] Fix video generation Wrap plain value into array to permit the call to Line2D.set_data() --- src/navigation_model/visualization/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navigation_model/visualization/video.py b/src/navigation_model/visualization/video.py index 60176c9..21c4a6c 100644 --- a/src/navigation_model/visualization/video.py +++ b/src/navigation_model/visualization/video.py @@ -100,8 +100,8 @@ def update(dt): # x_end_pnt = all_x[dt-1] # y_end_pnt = all_y[dt-1] - x_end_pnt = all_x[max(dt-1, 0)] - y_end_pnt = all_y[max(dt-1, 0)] + x_end_pnt = [all_x[max(dt-1, 0)]] + y_end_pnt = [all_y[max(dt-1, 0)]] ln.set_data(x, y) ln_end.set_data(x_end, y_end)