Skip to content

Commit 6cb018a

Browse files
authored
get_tight_single_resource_liquid_op_offsets in absolute space (#418)
1 parent 30cd4b8 commit 6cb018a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylabrobot/liquid_handling/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def get_tight_single_resource_liquid_op_offsets(
6464

6565
channel_space = (num_channels - 1) * min_spacing_between_channels
6666

67+
# offsets are in absolute space.
6768
if resource.get_absolute_rotation().z % 180 == 0:
6869
min_y = (resource.get_size_y() - channel_space) / 2
6970
if min_y < min_spacing_edge:
@@ -74,7 +75,7 @@ def get_tight_single_resource_liquid_op_offsets(
7475
elif resource.get_absolute_rotation().z % 90 == 0:
7576
min_x = (resource.get_size_x() - channel_space) / 2
7677
offsets = [
77-
Coordinate(min_x + i * min_spacing_between_channels, 0, 0) for i in range(num_channels)
78+
Coordinate(0, min_x + i * min_spacing_between_channels, 0) for i in range(num_channels)
7879
][::-1]
7980
else:
8081
raise ValueError("Only 90 and 180 degree rotations are supported for now.")

0 commit comments

Comments
 (0)