File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
pylabrobot/liquid_handling Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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." )
You can’t perform that action at this time.
0 commit comments