Skip to content

Commit

Permalink
- fix my comments
Browse files Browse the repository at this point in the history
  • Loading branch information
curtelsasser committed May 11, 2021
1 parent 0c67aad commit e873a6e
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions api/src/opentrons/protocols/api_support/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,33 @@ 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")


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")
Expand Down

0 comments on commit e873a6e

Please sign in to comment.