Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Oct 23, 2024
1 parent 5bafa09 commit 4a36e9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ def air_gap(
raise RuntimeError("No previous Well cached to perform air gap")
target = loc.labware.as_well().top(height)
self.move_to(target, publish=False)
self.aspirate(volume)
self.aspirate(volume) # add (is_liquid: bool = True) parameter to aspirate? Or deduce location is not in well in Aspirate command?
return self

@publisher.publish(command=cmds.return_tip)
Expand Down
2 changes: 2 additions & 0 deletions api/src/opentrons/protocol_engine/commands/blow_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ async def execute(self, params: BlowOutParams) -> _ExecuteReturn:
pipette_id=params.pipetteId, flow_rate=params.flowRate
)
except PipetteOverpressureError as e:
# can we get blown_out_amount_prior_to_error? If not, can we assume no liquid was added to well? Ask Ryan
return DefinedErrorData(
public=OverpressureError(
id=self._model_utils.generate_id(),
Expand All @@ -114,6 +115,7 @@ async def execute(self, params: BlowOutParams) -> _ExecuteReturn:
),
)
else:
# if blow out over a well, can we get pipette tip liquid volume and add that to well liquid volume?
return SuccessData(
public=BlowOutResult(position=deck_point),
private=None,
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_engine/commands/dispense.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def execute(self, params: DispenseParams) -> _ExecuteReturn:
push_out=params.pushOut,
)
except PipetteOverpressureError as e:
# can we get aspirated_amount_prior_to_error? If not, can we assume no liquid was removed from well? Ask Ryan
# can we get dispensed_amount_prior_to_error? If not, can we assume no liquid was added to well? Ask Ryan
return DefinedErrorData(
public=OverpressureError(
id=self._model_utils.generate_id(),
Expand Down

0 comments on commit 4a36e9a

Please sign in to comment.