""" Arguments: MOTOR (device) SENSORS (list) RANGE (tuple (min, max)) STEPS (int or tuple) LATENCY (double) RELATIVE (BOOLEAN) """ #Debugging if get_exec_pars().args is None: MOTOR = dummy_x SENSORS = [current, ccd.dataMatrix] RANGE = [0.0,1.0] STEPS = 5 LATENCY = 0.1 RELATIVE = False try: r = lscan(MOTOR, SENSORS, RANGE[0], RANGE[1], STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout, compression=True) finally: after_scan()