Skip to content

Commit c94dc30

Browse files
authored
Fix iswap_move_picked_up_resource to move into -x and -y dimension (#780)
1 parent 609635c commit c94dc30

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pylabrobot/liquid_handling/backends/hamilton/STAR_backend.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,11 +3147,14 @@ async def iswap_move_picked_up_resource(
31473147

31483148
assert self.iswap_installed, "iswap must be installed"
31493149

3150+
x_direction = 0 if center.x >= 0 else 1
3151+
y_direction = 0 if center.y >= 0 else 1
3152+
31503153
await self.move_plate_to_position(
3151-
x_position=round(center.x * 10),
3152-
x_direction=0,
3153-
y_position=round(center.y * 10),
3154-
y_direction=0,
3154+
x_position=round(abs(center.x) * 10),
3155+
x_direction=x_direction,
3156+
y_position=round(abs(center.y) * 10),
3157+
y_direction=y_direction,
31553158
z_position=round(center.z * 10),
31563159
z_direction=0,
31573160
grip_direction={

0 commit comments

Comments
 (0)