diff options
Diffstat (limited to 'lab_control/test/mock_lab.py')
-rw-r--r-- | lab_control/test/mock_lab.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lab_control/test/mock_lab.py b/lab_control/test/mock_lab.py index 75ba1bf..1016b92 100644 --- a/lab_control/test/mock_lab.py +++ b/lab_control/test/mock_lab.py @@ -55,6 +55,9 @@ class MockLab(FunctionGenerator, Oscilloscope): def setVoltsPerDivision(self, channel: int, volts: float) -> None: self.oscChannels[channel - 1].voltsPerDiv = volts + def getDivisionsDisplayed(self) -> int: + return 12 + def setTestFunction(self, channel: int, f: Callable[[float], float]) -> None: self.oscChannels[channel - 1].testFunction = f |