Skip to content

Commit

Permalink
Add get_channel method to Device super class
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBraml committed Feb 5, 2024
1 parent 54fb429 commit 408d4bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions py_instrument_control_lib/device_base/Device.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from abc import ABC, abstractmethod

from py_instrument_control_lib.channels.Channel import Channel
from py_instrument_control_lib.channels.ChannelEnums import ChannelIndex
from py_instrument_control_lib.device_base.DeviceConfigs import DeviceConfig


Expand All @@ -22,3 +24,7 @@ def query(self, query: str) -> str:
@abstractmethod
def disconnect(self) -> None:
pass

@abstractmethod
def get_channel(self, channel_idx: ChannelIndex, check_errors: bool = False) -> Channel:
pass

0 comments on commit 408d4bc

Please sign in to comment.