Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
olliesilvester committed Feb 21, 2024
1 parent 4a7ed7d commit 73ab698
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dodal/devices/oav/pin_image_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@

Tip = tuple[Optional[int], Optional[int]]


class InvalidPinException(Exception):
pass


def set_pin_value(*args, **kwargs):
if args[1] == PinTipDetection.INVALID_POSITION:
raise InvalidPinException
else:
return set_sim_value(*args, **kwargs)


class PinTipDetection(StandardReadable):
"""
A device which will read from an on-axis view and calculate the location of the
Expand Down

0 comments on commit 73ab698

Please sign in to comment.