Fixed plugin calling old focus_rel method
This commit is contained in:
parent
39e2e0baad
commit
5e34b998dd
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class AutofocusPlugin(MicroscopePlugin):
|
|||
sharpnesses.append(self.measure_sharpness(metric_fn))
|
||||
|
||||
newposition = positions[np.argmax(sharpnesses)]
|
||||
stage.focus_rel(newposition - stage.position[2])
|
||||
stage.move_rel([0, 0, newposition - stage.position[2]])
|
||||
|
||||
return positions, sharpnesses
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue