fix(scheduler): auto-gain command

This commit is contained in:
x01da committed 2026-10-19 08:48:45 +02:00
1 parent 0173e0b9b9
commit e2c1886735
1 file changed
+7 -2
@@ -252,7 +252,12 @@ class ScheduleItemDialog(QDialog):
return {
"command": f"dev.{device_name}.move({value!r}, relative={relative!r})",
"kind": "move",
"form_state": {"device_name": device_name, "value": value, "units": units, "relative": relative},
"form_state": {
"device_name": device_name,
"value": value,
"units": units,
"relative": relative,
},
}
def _prefill_move_page(self, state: dict):
@@ -554,7 +559,7 @@ class ScheduleItemDialog(QDialog):
raise ValueError("Select at least one amplifier for auto gain.")
cmd = (
f"auto_gain.start(element={self.edge_element}, edge={self.edge_edge}, "
f"{amplifiers}, comp_ring_current=True)"
f"amplifier={amplifiers}, comp_ring_current=True)"
)
return {
"command": cmd,