0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix: self.limit_map_data fixed to be initialised only with integers from limits

This commit is contained in:
wyzula-jan
2023-09-06 17:24:39 +02:00
parent 3a68744b9a
commit b62509a28e

View File

@ -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