+2
-5
@@ -9,17 +9,14 @@ import time
|
||||
class PV(epics.PV):
|
||||
|
||||
def put(self, value, *args, show_progress=False, **kwargs):
|
||||
|
||||
###### AVANNNNNT
|
||||
kwargs["wait"] = True # enforce wait to show progress
|
||||
#kwargs["timeout"] = 2.0 # Explicit timeout
|
||||
|
||||
if not show_progress:
|
||||
# Simple put with verification
|
||||
result = super().put(value, *args, **kwargs)
|
||||
time.sleep(0.1) # Small safety delay
|
||||
return result
|
||||
|
||||
kwargs["wait"] = True
|
||||
|
||||
start = self.get()
|
||||
stop = value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user