New ScreenPanel

This commit is contained in:
2018-01-19 10:56:53 +01:00
commit ae4d621609
580 changed files with 46598 additions and 0 deletions

18
script/RecordInvalidation.py Executable file
View File

@@ -0,0 +1,18 @@
###################################################################################################
#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)