Skip to content
Snippets Groups Projects
Commit 8005d82c authored by Simon Bjurek's avatar Simon Bjurek
Browse files

Fix top y-pos bug in scheduler GUI

parent de00dcdd
No related branches found
No related tags found
1 merge request!567Fix y pos bug scheduler gui
Pipeline #167555 passed
......@@ -228,14 +228,16 @@ class SchedulerEvent:
pos_y = self._schedule.get_y_location(item.operation.graph_id)
# Check move in y-direction
if pos_y != self._old_op_position:
insert = (pos_y % 1) != 0 or pos_y < 0
pos_y = max(math.ceil(pos_y), 0)
self._schedule.move_y_location(
item.operation.graph_id,
math.ceil(pos_y),
(pos_y % 1) != 0,
pos_y,
insert,
)
print(
f"schedule.move_y_location({item.operation.graph_id!r},"
f" {math.ceil(pos_y)}, {(pos_y % 1) != 0})"
f" {pos_y}, {insert})"
)
self._signals.redraw_all.emit()
# Operation has been moved in x-direction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment