From efef9fbee21fb2baf5fff2ce7a6d3498e795a360 Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Thu, 14 Sep 2023 16:27:28 +0200 Subject: [PATCH] Script execution --- script/DeflectorScan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/DeflectorScan.py b/script/DeflectorScan.py index 8761dbab..7be1ff6d 100644 --- a/script/DeflectorScan.py +++ b/script/DeflectorScan.py @@ -21,7 +21,7 @@ SENSORS = (Counts, Scienta.dataMatrix, Scienta.spectrum, SampleCurrent, RefCurre STARTPOS = -15. ENDPOS = +15. # if integer, actual number of positions will be +1! -STEPS = 1 +STEPS = 1. RELATIVE = False LATENCY = 0.0 ENDSCAN = True @@ -54,9 +54,9 @@ try: print "speed: ", SPEED print "scan time: ", fly_time - cscan(MOTORS, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, fly_time, RELATIVE, before_read=before_readout, after_read = after_readout, check_positions = False) + cscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, fly_time, RELATIVE, before_read=before_readout, after_read = after_readout, check_positions = False) else: - lscan(MOTORS, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout) + lscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout) finally: if ENDSCAN: after_scan()