From 917a2c09090ed0d230ab80ad5e604a9ad2d459be Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@gmail.com>
Date: Sat, 15 Mar 2025 11:22:53 +0100
Subject: [PATCH] Draw schedule lines using a single spline

---
 .gitlab-ci.yml         | 2 ++
 b_asic/_preferences.py | 2 +-
 b_asic/schedule.py     | 5 +----
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4a822db9..6415026b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,6 +29,8 @@ before_script:
     # - lcov --list coverage.info
     # - find . -name '*.gc*' -delete
   artifacts:
+    paths:
+      - result_images/
     reports:
       coverage_report:
         coverage_format: cobertura
diff --git a/b_asic/_preferences.py b/b_asic/_preferences.py
index 83ac3f43..c20d23db 100644
--- a/b_asic/_preferences.py
+++ b/b_asic/_preferences.py
@@ -9,7 +9,7 @@ OPERATION_GAP: float = 0.5
 
 SCHEDULE_OFFSET: float = 0.2
 
-SPLINE_OFFSET: float = 0.2
+SPLINE_OFFSET: float = 0.5
 
 # Colors for architecture Digraph
 PE_COLOR = (0, 185, 231)  # LiuBlue
diff --git a/b_asic/schedule.py b/b_asic/schedule.py
index 67ec8f9b..013925cd 100644
--- a/b_asic/schedule.py
+++ b/b_asic/schedule.py
@@ -1120,13 +1120,10 @@ class Schedule:
                         [
                             start,
                             [start[0] + SPLINE_OFFSET, start[1]],
-                            [start[0] + SPLINE_OFFSET, (start[1] + end[1]) / 2],
-                            [start[0], (start[1] + end[1]) / 2],
-                            [start[0] - SPLINE_OFFSET, (start[1] + end[1]) / 2],
                             [start[0] - SPLINE_OFFSET, end[1]],
                             end,
                         ],
-                        [Path.MOVETO] + [Path.CURVE4] * 6,
+                        [Path.MOVETO] + [Path.CURVE4] * 3,
                     )
                 else:
                     path = Path(
-- 
GitLab