New ScreenPanel
This commit is contained in:
18
script/RecordInvalidation.py
Executable file
18
script/RecordInvalidation.py
Executable 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)
|
||||
Reference in New Issue
Block a user