From e873a6eb35d4cb85eb2c4c331271345d7a060fbf Mon Sep 17 00:00:00 2001 From: curtelsasser Date: Tue, 11 May 2021 16:22:48 -0400 Subject: [PATCH] - fix my comments --- .../protocols/api_support/instrument.py | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/api/src/opentrons/protocols/api_support/instrument.py b/api/src/opentrons/protocols/api_support/instrument.py index aea7a2f6720..571f571e886 100644 --- a/api/src/opentrons/protocols/api_support/instrument.py +++ b/api/src/opentrons/protocols/api_support/instrument.py @@ -108,12 +108,16 @@ def determine_drop_target( def validate_can_aspirate( location: Union[Labware, Well, types.Location]) -> None: - """ - Can one aspirate on the given `location` or not? This method is + """ Can one aspirate on the given `location` or not? This method is pretty basic and will probably remain so (?) as the future holds neat - ambitions for how validation is implemented and as robots become - more aware of their environment. - :raises RuntimeError: + ambitions for how validation is implemented. And as robots become more + intelligent more rigorous testing will be possible + + Args: + location: target for aspiration + + Raises: + RuntimeError: """ if _is_tiprack(location): raise RuntimeError("Cannot aspirate a tiprack") @@ -121,12 +125,16 @@ def validate_can_aspirate( def validate_can_dispense( location: Union[Labware, Well, types.Location]) -> None: - """ - Can one dispense to the given `location` or not? This method is + """ Can one dispense to the given `location` or not? This method is pretty basic and will probably remain so (?) as the future holds neat - ambitions for how validation is implemented and as robots become - more aware of their environment. - :raises RuntimeError: + ambitions for how validation is implemented. And as robots become more + intelligent more rigorous testing will be possible + + Args: + location: target for dispense + + Raises: + RuntimeError: """ if _is_tiprack(location): raise RuntimeError("Cannot dispense to a tiprack")