This commit is contained in:
2019-03-20 13:52:00 +01:00
parent 3084fe0510
commit 5db0f78aee
910 changed files with 191152 additions and 322 deletions

View File

@@ -1,18 +1,15 @@
###################################################################################################
#Resampling a scan record if no beam
#Resampling a scan record if there is no beam
###################################################################################################
index=0
def before_sampling(rec):
while beam_ok.read() == "No":
while beam_ok.read() == False:
time.sleep(0.1)
def after_sampling(rec):
if beam_ok.read() == "No":
if beam_ok.read() == False:
rec.invalidate()
a= lscan((m1), (ai1,ai2), (0,), (0.4,), 20, 0.2, before_read=before_sampling, after_read=after_sampling)
ret = lscan(motor, (out, sin), 0.0, 2.0, 0.1, 0.2,\
before_read=before_sampling, \
after_read=after_sampling)