Closedown
This commit is contained in:
@@ -219,7 +219,6 @@ def append_diag_datasets(parent = None):
|
||||
|
||||
|
||||
def wait_beam():
|
||||
return
|
||||
if not beam_ok:
|
||||
print "Waiting for beam..."
|
||||
while not beam_ok:
|
||||
@@ -242,9 +241,6 @@ def before_readout():
|
||||
|
||||
|
||||
def after_readout(rec):
|
||||
#if not beam_ok:
|
||||
# rec.invalidate()
|
||||
# return
|
||||
if get_context().persist:
|
||||
if rec.index == 0:
|
||||
create_diag_datasets()
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
if controller.state == State.Ready:
|
||||
print "Testing..."
|
||||
if not Scienta.state.isInitialized():
|
||||
print "Try initialize Scienta..."
|
||||
try:
|
||||
controller.evalLine("Scienta.initialize()")
|
||||
print "Scienta reinit ok"
|
||||
except:
|
||||
print "Scienta reinit failure"
|
||||
else:
|
||||
retries = 5
|
||||
for i in range(retries):
|
||||
try:
|
||||
Scienta.getImageCounter().read()
|
||||
break
|
||||
except:
|
||||
if i >= retries-1:
|
||||
print "Scienta timeout, try initialize..."
|
||||
try:
|
||||
controller.evalLine("Scienta.initialize()")
|
||||
print "Scienta reinit ok"
|
||||
except:
|
||||
print "Scienta reinit failure"
|
||||
break
|
||||
else:
|
||||
print "Scienta timeout, retry..."
|
||||
time.sleep(0.1)
|
||||
pass
|
||||
print "Quit"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user