Skip to content

Commit 428a4f2

Browse files
committed
switched around the home properties and commands to apply to whole stage
1 parent 9c50cb9 commit 428a4f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

microscope/stages/ludl.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ def __init__(self, dev_conn: _LudlController, axis: str) -> None:
280280
self.min_limit = 0.0
281281
self.max_limit = 100000.0
282282
self.set_speed(100000)
283-
self.home()
284283

285284
def move_by(self, delta: float) -> None:
286285
self._dev_conn.move_by_relative_position(self._axis, int(delta))
@@ -339,8 +338,8 @@ def __init__(
339338
self._axes = {
340339
str(i): _LudlStageAxis(self._dev_conn, i)
341340
for i in range(1, 3)#self._dev_conn.get_number_axes() + 1)
342-
self.homed = False
343341
}
342+
self.homed = False
344343

345344
def _do_shutdown(self) -> None:
346345
pass
@@ -357,7 +356,7 @@ def axes(self) -> typing.Mapping[str, microscope.abc.StageAxis]:
357356

358357
@property
359358
def need_homed(self):
360-
return not(self.homed)
359+
return not self.homed
361360

362361
def move_by(self, delta: typing.Mapping[str, float]) -> None:
363362
"""Move specified axes by the specified distance. """

0 commit comments

Comments
 (0)