Skip to content

Commit

Permalink
remove this method that we no longer need/want
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Oct 1, 2024
1 parent ccf895b commit a911c06
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions api/src/opentrons/protocol_engine/state/frustum_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,6 @@ def _reject_unacceptable_heights(
return valid_heights[0]


def get_cross_section_area(bounded_section: Any) -> float:
"""Find the shape of a cross-section and calculate the area appropriately."""
if bounded_section["shape"] == "circular":
cross_section_area = cross_section_area_circular(bounded_section["diameter"])
elif bounded_section["shape"] == "rectangular":
cross_section_area = cross_section_area_rectangular(
bounded_section["xDimension"],
bounded_section["yDimension"],
)
else:
raise InvalidWellDefinitionError(message="Invalid well volume components.")
return cross_section_area


def _cross_section_area_circular(diameter: float) -> float:
"""Get the area of a circular cross-section."""
radius = diameter / 2
Expand Down

0 comments on commit a911c06

Please sign in to comment.