Script execution

This commit is contained in:
x03daop
2017-04-12 12:46:49 +02:00
parent 940c36ab55
commit 1281f7159c

View File

@@ -120,7 +120,7 @@ def update_live_plots():
pass
time.sleep(1.0)
finally:
print "Stopping live plots"
print "Stopping live spectra"
def do_scan(motors, positions, regions, latency):
global SENSORS
@@ -152,7 +152,7 @@ def do_scan(motors, positions, regions, latency):
for (index, region) in enumerate(regions):
set_attribute(get_exec_pars().scanPath + "ScientaSpectrum{0}".format(index + 1), "RegionName", region['name'])
set_attribute(get_exec_pars().scanPath + "ScientaImage{0}".format(index + 1), "RegionName", region['name'])
set_attribute(get_exec_pars().scanPath, "Regions", ','.join([region['name'] for region in regions]))
set_attribute(get_exec_pars().scanPath, "Regions", [region['name'] for region in regions])
try:
setup_live_plots(REGIONS)