From 03beee18c2e5784cdf12d7f4bde935c9266c6393 Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@gmail.com>
Date: Fri, 21 Apr 2023 15:04:39 +0200
Subject: [PATCH] Also copy schedule time and y-locations for inplace editing

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

diff --git a/b_asic/schedule.py b/b_asic/schedule.py
index 352e3787..a92f6a36 100644
--- a/b_asic/schedule.py
+++ b/b_asic/schedule.py
@@ -329,6 +329,8 @@ class Schedule:
         if inplace:
             self._start_times = new_schedule._start_times
             self._laps = new_schedule._laps
+            self._schedule_time = new_schedule._schedule_time
+            self._y_locations = new_schedule._y_locations
         return new_schedule
 
     def increase_time_resolution(self, factor: int) -> "Schedule":
-- 
GitLab