Skip to content

Commit

Permalink
Update src/ophyd_async/epics/adaravis/_aravis_controller.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com>
  • Loading branch information
jwlodek and coretl authored Dec 20, 2024
1 parent 05dd89c commit 3fcd541
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/ophyd_async/epics/adaravis/_aravis_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,3 @@ def _get_trigger_info(
else:
return (AravisTriggerMode.ON, f"Line{self.gpio_number}") # type: ignore

def get_external_trigger_gpio(self):
return self.gpio_number

def set_external_trigger_gpio(self, gpio_number: GPIO_NUMBER):
supported_gpio_numbers = get_args(AravisController.GPIO_NUMBER)
if gpio_number not in supported_gpio_numbers:
raise ValueError(
f"{self.__class__.__name__} only supports the following GPIO "
f"indices: {supported_gpio_numbers} but was asked to "
f"use {gpio_number}"
)
self.gpio_number = gpio_number

0 comments on commit 3fcd541

Please sign in to comment.