Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ephys_link/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.2.1"
__version__ = "2.2.2"
3 changes: 2 additions & 1 deletion src/ephys_link/bindings/mpm_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ async def set_depth(self, manipulator_id: str, depth: float, speed: float) -> fl
# Keep track of the previous depth to check if the manipulator stopped advancing unexpectedly.
current_depth = (await self.get_position(manipulator_id)).w
previous_depth = current_depth
depth = self.get_dimensions().w - depth
unchanged_counter = 0

# Send move request.
Expand Down Expand Up @@ -244,7 +245,7 @@ async def set_depth(self, manipulator_id: str, depth: float, speed: float) -> fl
self._movement_stopped = False

# Return the final depth.
return float((await self.get_position(manipulator_id)).w)
return float(self.get_dimensions().w - (await self.get_position(manipulator_id)).w)

@override
async def stop(self, manipulator_id: str) -> None:
Expand Down