From de2f162c83708a8112858391e3a0abf2936eed62 Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@gmail.com>
Date: Tue, 28 Mar 2023 16:34:42 +0200
Subject: [PATCH] Fix issue with schedule and Python >= 3.10

---
 b_asic/schedule.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/b_asic/schedule.py b/b_asic/schedule.py
index a5f298f8..b07d41d5 100644
--- a/b_asic/schedule.py
+++ b/b_asic/schedule.py
@@ -411,7 +411,7 @@ class Schedule:
                     self.set_y_location(gid, self.get_y_location(gid) + 1)
         self.set_y_location(graph_id, new_y)
         used_locations = {*self._y_locations.values()}
-        possible_locations = set(range(max(used_locations) + 1))
+        possible_locations = set(range(round(max(used_locations)) + 1))
         if not possible_locations - used_locations:
             return
         remapping = {}
-- 
GitLab