From b52611344c1a4259c190d050f4a859c1d28d2626 Mon Sep 17 00:00:00 2001 From: Vincent Hanewinkel Date: Thu, 14 Aug 2025 20:44:43 +0200 Subject: [PATCH] try fix --- Controll.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controll.py b/Controll.py index ccc4b01..86bf640 100644 --- a/Controll.py +++ b/Controll.py @@ -10,8 +10,8 @@ sess.add_all() controllers = {dev.serial: DeviceController(dev) for dev in sess.devices} serials = list(controllers.keys()) -for i in enumerate(serials): - c = controllers[i] +for i, serial in enumerate(serials): + c = controllers[serial] c.set_mode(0, pysmu.Mode.SIMV) # CH A Hi-Z c.set_mode(1, pysmu.Mode.HI_Z) # CH B Hi-Z MainWindow.add_list_item(MainWindow, serials[i], i, c.start, c.stop)