@@ -191,14 +191,13 @@ async def aspirate_while_tracking(
191
191
raise InvalidLiquidHeightFound (
192
192
"Aspirate distance must be a float in Hardware pipetting handler."
193
193
)
194
- # uncomment this when hw control pr gets merged
195
- # with self._set_flow_rate(pipette=hw_pipette, aspirate_flow_rate=flow_rate):
196
- # await self._hardware_api.aspirate_while_tracking(
197
- # mount=hw_pipette.mount,
198
- # z_distance=aspirate_z_distance,
199
- # flow_rate=flow_rate,
200
- # volume=adjusted_volume,
201
- # )
194
+ with self ._set_flow_rate (pipette = hw_pipette , aspirate_flow_rate = flow_rate ):
195
+ await self ._hardware_api .aspirate_while_tracking (
196
+ mount = hw_pipette .mount ,
197
+ z_distance = aspirate_z_distance ,
198
+ flow_rate = flow_rate ,
199
+ volume = adjusted_volume ,
200
+ )
202
201
return adjusted_volume
203
202
204
203
async def dispense_while_tracking (
@@ -226,15 +225,14 @@ async def dispense_while_tracking(
226
225
raise InvalidLiquidHeightFound (
227
226
"Dispense distance must be a float in Hardware pipetting handler."
228
227
)
229
- # uncomment this when hw control pr gets merged
230
- # with self._set_flow_rate(pipette=hw_pipette, dispense_flow_rate=flow_rate):
231
- # await self._hardware_api.dispense_while_tracking(
232
- # mount=hw_pipette.mount,
233
- # z_distance=dispense_z_distance,
234
- # flow_rate=flow_rate,
235
- # volume=adjusted_volume,
236
- # push_out=push_out,
237
- # )
228
+ with self ._set_flow_rate (pipette = hw_pipette , dispense_flow_rate = flow_rate ):
229
+ await self ._hardware_api .dispense_while_tracking (
230
+ mount = hw_pipette .mount ,
231
+ z_distance = dispense_z_distance ,
232
+ flow_rate = flow_rate ,
233
+ volume = adjusted_volume ,
234
+ push_out = push_out ,
235
+ )
238
236
return adjusted_volume
239
237
240
238
async def aspirate_in_place (
0 commit comments