From b62509a28e970358c3ffd4f7d55c2a6bbef35970 Mon Sep 17 00:00:00 2001 From: wyzula-jan <133381102+wyzula-jan@users.noreply.github.com> Date: Wed, 6 Sep 2023 17:24:39 +0200 Subject: [PATCH] fix: self.limit_map_data fixed to be initialised only with integers from limits --- bec_widgets/examples/motor_movement/motor_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bec_widgets/examples/motor_movement/motor_example.py b/bec_widgets/examples/motor_movement/motor_example.py index c1800233..94c88e81 100644 --- a/bec_widgets/examples/motor_movement/motor_example.py +++ b/bec_widgets/examples/motor_movement/motor_example.py @@ -447,8 +447,8 @@ class MotorApp(QWidget): self.offset_y = limit_y_min # Define the size of the image map based on the motor's limits - map_width = limit_x_max - limit_x_min + 1 - map_height = limit_y_max - limit_y_min + 1 + map_width = int(limit_x_max - limit_x_min + 1) + map_height = int(limit_y_max - limit_y_min + 1) # Create an empty image map self.background_value = 25