Files
x09lb/script/local.py
2022-10-03 10:00:04 +02:00

30 lines
667 B
Python

###################################################################################################
# Deployment specific global definitions - executed after startup.py
###################################################################################################
def trig_ccd():
pass
def is_beam_ok():
return True
def wait_beam():
if not is_beam_ok():
print "Waiting for beam..."
while not beam_ok:
time.sleep(0.1)
print "Beam ok"
def before_readout():
wait_beam()
trig_ccd()
def after_readout(rec, scan):
if not is_beam_ok():
rec.invalidate()
def after_scan():
pass