Skip to content

Commit fcae7a9

Browse files
committed
slightly rearrage the timing of this
1 parent e738ebe commit fcae7a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hardware/opentrons_hardware/hardware_control/tool_sensors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ async def run_sync_buffer_to_csv(
185185
"""Runs the sensor pass move group and creates a csv file with the results."""
186186
sensor_metadata = [0, 0, mount_speed, plunger_speed, threshold]
187187
positions = await move_group.run(can_messenger=messenger)
188-
if raise_z is not None:
189-
# if probing is finished, move the head node back up before requesting the data buffer
190-
if positions[head_node].move_ack == MoveCompleteAck.stopped_by_condition:
191-
await raise_z.run(can_messenger=messenger)
192188
# wait a little to see the dropoff curve
193189
await asyncio.sleep(0.15)
194190
for sensor_id in log_files.keys():
@@ -203,6 +199,10 @@ async def run_sync_buffer_to_csv(
203199
),
204200
expected_nodes=[tool],
205201
)
202+
if raise_z is not None and False:
203+
# if probing is finished, move the head node back up before requesting the data buffer
204+
if positions[head_node].move_ack == MoveCompleteAck.stopped_by_condition:
205+
await raise_z.run(can_messenger=messenger)
206206
for sensor_id in log_files.keys():
207207
sensor_capturer = LogListener(
208208
mount=head_node,

0 commit comments

Comments
 (0)