Update slic/utils/pv.py
Run CI Tests / test (push) Successful in 1m41s

This commit is contained in:
2025-08-04 14:16:47 +02:00
parent 82ba041a6a
commit 6ae57958c0
+3 -1
View File
@@ -10,13 +10,15 @@ class PV(epics.PV):
if not show_progress:
return super().put(value, *args, **kwargs)
kwargs["wait"] = True # enforce wait to show progress
kwargs["wait"] = True # enforce wait to show progress
start = self.get()
stop = value
print(f"[DEBUG] PUT start = {start}, stop = {stop}")
with RangeBar(start, stop) as rbar:
def on_change(value=None, **kw):
print(f"[DEBUG] Callback called with value = {value}")
rbar.show(value)
with self.use_callback(on_change):