Skip to content

Commit

Permalink
tidied up
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Oct 17, 2024
1 parent fb8a20c commit 6feaff0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def meniscus(self, z: float = 0.0) -> Location:
"""
:param z: An offset on the z-axis, in mm. Positive offsets are higher and
negative offsets are lower.
:return: A :py:class:`~opentrons.types.Location` that holds the ``z`` offset in its point.z field.
:return: A :py:class:`~opentrons.types.Location` that indicates location is meniscus and that holds the ``z`` offset in its point.z field.
:meta private:
"""
Expand Down
6 changes: 1 addition & 5 deletions api/src/opentrons/protocol_api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,7 @@ def validate_location(
_, well = target_location.labware.get_parent_labware_and_well()

return (
WellTarget(
well=well,
location=target_location,
in_place=in_place,
)
WellTarget(well=well, location=target_location, in_place=in_place)
if well is not None
else PointTarget(location=target_location, in_place=in_place)
)
5 changes: 4 additions & 1 deletion api/src/opentrons/protocol_engine/state/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,10 @@ def get_relative_liquid_handling_well_location(
absolute_point: Point,
is_meniscus: Optional[bool] = None,
) -> LiquidHandlingWellLocation:
"""Given absolute position, get relative location of a well in a labware."""
"""Given absolute position, get relative location of a well in a labware.
If is_meniscus is True, absolute_point will hold the z-offset in its z field.
"""
if is_meniscus:
return LiquidHandlingWellLocation(
origin=WellOrigin.MENISCUS,
Expand Down

0 comments on commit 6feaff0

Please sign in to comment.