Skip to content

Commit 28e9ae0

Browse files
authored
pierce_foil: decrease height diff from 20mm to 15mm (#400)
1 parent 88ac451 commit 28e9ae0

File tree

1 file changed

+10
-2
lines changed
  • pylabrobot/liquid_handling/backends/hamilton

1 file changed

+10
-2
lines changed

pylabrobot/liquid_handling/backends/hamilton/STAR.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7774,7 +7774,12 @@ async def pierce_foil(
77747774
)
77757775

77767776
async def step_off_foil(
7777-
self, well: Well, front_channel: int, back_channel: int, move_inwards: float = 2
7777+
self,
7778+
well: Well,
7779+
front_channel: int,
7780+
back_channel: int,
7781+
move_inwards: float = 2,
7782+
move_height: float = 15,
77787783
):
77797784
"""
77807785
Hold down a plate by placing two channels on the edges of a plate that is sealed with foil
@@ -7800,6 +7805,7 @@ async def step_off_foil(
78007805
front_channel: The channel to place on the front of the plate.
78017806
back_channel: The channel to place on the back of the plate.
78027807
move_inwards: mm to move inwards (backward on the front channel; frontward on the back).
7808+
move_height: mm to move upwards after piercing the foil. front_channel and back_channel will hold the plate down.
78037809
"""
78047810

78057811
if front_channel <= back_channel:
@@ -7828,7 +7834,9 @@ async def step_off_foil(
78287834
zs = await self.get_channels_z_positions()
78297835
indices = [channel_idx for channel_idx, z in zs.items() if z < front_location.z]
78307836
idx = {
7831-
idx: front_location.z + 20 for idx in indices if idx not in (front_channel, back_channel)
7837+
idx: front_location.z + move_height
7838+
for idx in indices
7839+
if idx not in (front_channel, back_channel)
78327840
}
78337841
await self.position_channels_in_z_direction(idx)
78347842

0 commit comments

Comments
 (0)