Skip to content

Commit

Permalink
this can definitely be none it means we didn't have schema 3 labware
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Oct 25, 2024
1 parent ffd67c6 commit a2d2cf8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/src/opentrons/protocol_engine/state/wells.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,12 @@ def _handle_liquid_operated_update(
del self._state.probed_volumes[labware_id][well_name]
else:
prev_probed_vol_info = self._state.probed_volumes[labware_id][well_name]
assert prev_probed_vol_info.volume is not None
if prev_probed_vol_info.volume is None:
new_vol_info: float | None = None
else:
new_vol_info = prev_probed_vol_info.volume + state_update.volume
self._state.probed_volumes[labware_id][well_name] = ProbedVolumeInfo(
volume=prev_probed_vol_info.volume + state_update.volume,
volume=new_vol_info,
last_probed=prev_probed_vol_info.last_probed,
operations_since_probe=prev_probed_vol_info.operations_since_probe
+ 1,
Expand Down

0 comments on commit a2d2cf8

Please sign in to comment.