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()