18 lines
550 B
Python
Executable File
18 lines
550 B
Python
Executable File
###################################################################################################
|
|
#Resampling a scan record if no beam
|
|
###################################################################################################
|
|
|
|
|
|
index=0
|
|
|
|
|
|
def before_sampling(rec):
|
|
while beam_ok.read() == "No":
|
|
time.sleep(0.1)
|
|
|
|
def after_sampling(rec):
|
|
if beam_ok.read() == "No":
|
|
rec.invalidate()
|
|
|
|
|
|
a= lscan((m1), (ai1,ai2), (0,), (0.4,), 20, 0.2, before_read=before_sampling, after_read=after_sampling) |