parser.add_argument(
'-s', '--song',
help='Path to a song to play when the experiment is complete')
+ parser.add_argument(
+ '-S', '--no-stepper-tweaks', dest='stepper_tweaks',
+ action='store_const', const=False, default=True,
+ help=("Don't move the stepper except for the initial approach "
+ "and final retraction"))
args = parser.parse_args()
afm.piezo.zero()
unfolder = Unfolder(config=unfold_config, afm=afm)
scanner = UnfoldScanner(config=scan_config, unfolder=unfolder)
- scanner.run()
+ scanner.run(stepper_tweaks=args.stepper_tweaks)
finally:
afm.move_away_from_surface()
afm.piezo.zero()