diff --git a/script/ManipulatorYZFlyScan.py b/script/ManipulatorYZFlyScan.py index b56f84d2..eb414fa8 100644 --- a/script/ManipulatorYZFlyScan.py +++ b/script/ManipulatorYZFlyScan.py @@ -59,11 +59,11 @@ def before_pass(index, scan): try: #cscan(MOTORS, SENSORS, RANGE_Y[0], RANGE_Y[1], STEPS_Y, time=fly_time, passes=len(positions_z), zigzag=ZIGZAG, before_read=before_readout, after_read = after_readout, before_pass = before_pass, check_positions = False) - Scienta.setGrabMode(Scienta.getGrabMode.Continuous) + Scienta.setGrabMode(Scienta.getGrabMode().Continuous) cscan(MOTORS, SENSORS, RANGE_Y[0], RANGE_Y[1], STEPS_Y, time=fly_time, passes=len(positions_z), zigzag=ZIGZAG, before_pass=before_pass, check_positions=False) finally: - Scienta.setGrabMode(Scienta.getGrabMode.Single) + Scienta.setGrabMode(Scienta.getGrabMode().Single) if ENDSCAN: after_scan()