summaryrefslogtreecommitdiffstats
path: root/lab_control/oscilloscope.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2022-05-31 19:34:32 +0200
committerEddy Pedroni <eddy@0xf7.com>2022-05-31 19:34:32 +0200
commit6b709f4423d132742207b5cf01a64f0707a77927 (patch)
tree27f9f7ef72c41d3439eb562cb3803f27fb229595 /lab_control/oscilloscope.py
parent8bcc83cd9fb5cca758baef6d8324151c84d9384e (diff)
Added pylint config, code improvements suggested by pylint
Diffstat (limited to 'lab_control/oscilloscope.py')
-rw-r--r--lab_control/oscilloscope.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/lab_control/oscilloscope.py b/lab_control/oscilloscope.py
index 9f2d02c..e4b5a89 100644
--- a/lab_control/oscilloscope.py
+++ b/lab_control/oscilloscope.py
@@ -1,17 +1,21 @@
+""" Interface definition for oscilloscope devices. """
+
class Oscilloscope:
+ """
+ This interface specifies the common API for all
+ supported oscilloscope devices.
+ """
def __init__(self):
- raise Exception("This class should not be instantiated directly, please extend it instead")
+ pass
def measureAmplitude(self, channel: int) -> float:
- pass
+ """ Return amplitude measurement on specific channel. """
def measurePeakToPeak(self, channel: int) -> float:
- pass
+ """ Return peak-to-peak measurement on specific channel. """
def measureRMS(self, channel: int) -> float:
- pass
+ """ Return RMS measurement on specific channel. """
def measureFrequency(self, channel: int) -> float:
- pass
-
-
+ """ Return frequency measurement on specific channel. """