From 1f46ea7e07b842b51e688cbbab3fc86f64f219be Mon Sep 17 00:00:00 2001 From: tpollina Date: Thu, 19 Dec 2019 04:57:32 -0800 Subject: [PATCH] Update focus.py --- scripts/focus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/focus.py b/scripts/focus.py index b56c391..79185fc 100644 --- a/scripts/focus.py +++ b/scripts/focus.py @@ -20,19 +20,19 @@ stage = kit.stepper2 stage.release() -def focus(steps,orientation): +def focus(nb_step,orientation): #0.25mm/step #31um/microsteps stage.release() if orientation == 'up': - for i in range(steps): + for i in range(nb_step): stage.onestep(direction=stepper.FORWARD, style=stepper.MICROSTEP) sleep(0.001) if orientation == 'down': - for i in range(steps): + for i in range(nb_step): stage.onestep(direction=stepper.BACKWARD, style=stepper.MICROSTEP) sleep(0.001)