Skip to content

Commit bac7d54

Browse files
sum comments
1 parent 579f0c1 commit bac7d54

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

api/src/opentrons/protocol_api/core/legacy_simulator/legacy_instrument_core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -571,4 +571,5 @@ def estimate_liquid_height(
571571
starting_liquid_height: float,
572572
operation_volume: float,
573573
) -> float:
574-
return 0.0
574+
"""This will never be called because it was added in API 2.21."""
575+
assert False, "estimate_liquid_height only supported in API 2.21 & later"

api/src/opentrons/protocol_engine/state/frustum_helpers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ def _get_segment_capacity(segment: WellSegment) -> float:
241241
def get_well_volumetric_capacity(
242242
well_geometry: InnerWellGeometry,
243243
) -> List[Tuple[float, float]]:
244-
"""Return the total volumetric capacity of a well as a map of height borders to volume."""
245-
# [(top_height_0, total_volume_at_height_0), (top_height_1, total_volume_at_height_1), ...]
244+
"""Return the volumetric capacity of a well as a list of pairs relating segment heights to volumes."""
245+
# [(top_height_0, section_0_volume), (top_height_1, section_1_volume), ...]
246246
well_volume = []
247247

248248
# get the well segments sorted in ascending order

api/src/opentrons/protocol_engine/state/geometry.py

-1
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,6 @@ def get_well_height_after_liquid_handling(
15621562
well_geometry = self._labware.get_well_geometry(
15631563
labware_id=labware_id, well_name=well_name
15641564
)
1565-
# figure out what initial_height is here
15661565
initial_volume = find_volume_at_well_height(
15671566
target_height=initial_height, well_geometry=well_geometry
15681567
)

0 commit comments

Comments
 (0)