diff --git a/api/src/opentrons/protocol_api/core/engine/well.py b/api/src/opentrons/protocol_api/core/engine/well.py index b71ba96128a..51272e8724a 100644 --- a/api/src/opentrons/protocol_api/core/engine/well.py +++ b/api/src/opentrons/protocol_api/core/engine/well.py @@ -3,7 +3,12 @@ from opentrons_shared_data.labware.constants import WELL_NAME_PATTERN -from opentrons.protocol_engine import WellLocation, WellOrigin, WellOffset, WellVolumeOffset +from opentrons.protocol_engine import ( + WellLocation, + WellOrigin, + WellOffset, + WellVolumeOffset, +) from opentrons.protocol_engine import commands as cmd from opentrons.protocol_engine.clients import SyncClient as EngineClient from opentrons.protocols.api_support.util import UnsupportedAPIError @@ -125,7 +130,9 @@ def get_center(self) -> Point: well_location=WellLocation(origin=WellOrigin.CENTER), ) - def get_meniscus(self, z_offset: float, operation_volume: Optional[float] = None) -> Point: + def get_meniscus( + self, z_offset: float, operation_volume: Optional[float] = None + ) -> Point: """Get the coordinate of the well's meniscus, with a z-offset.""" return self._engine_client.state.geometry.get_well_position( well_name=self._name, diff --git a/api/src/opentrons/protocol_api/labware.py b/api/src/opentrons/protocol_api/labware.py index d5dc709996f..d8738a1fb42 100644 --- a/api/src/opentrons/protocol_api/labware.py +++ b/api/src/opentrons/protocol_api/labware.py @@ -222,7 +222,9 @@ def center(self) -> Location: return Location(self._core.get_center(), self) @requires_version(2, 21) - def meniscus(self, z: float = 0.0, operation_volume: Optional[float] = None) -> Location: + def meniscus( + self, z: float = 0.0, operation_volume: Optional[float] = None + ) -> Location: """ :param z: An offset on the z-axis, in mm. Positive offsets are higher and negative offsets are lower. @@ -230,7 +232,9 @@ def meniscus(self, z: float = 0.0, operation_volume: Optional[float] = None) -> absolute position of the meniscus-center of the well, plus the ``z`` offset (if specified). """ - return Location(self._core.get_meniscus(z_offset=z, operation_volume=operation_volume), self) + return Location( + self._core.get_meniscus(z_offset=z, operation_volume=operation_volume), self + ) @requires_version(2, 8) def from_center_cartesian(self, x: float, y: float, z: float) -> Point: