Skip to content

Commit fc8151e

Browse files
authored
Fix example in configure_trigger docstring
1 parent 16d9860 commit fc8151e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pslab/instrument/oscilloscope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ def configure_trigger(
302302
>>> from pslab import Oscilloscope
303303
>>> scope = Oscilloscope()
304304
>>> scope.configure_trigger(channel='CH1', voltage=1.1)
305-
>>> xy = scope.capture(channels=1, samples=800, timegap=2)
306-
>>> diff = abs(xy[1, 0] - 1.1) # Should be small unless a timeout occurred.
305+
>>> x, y = scope.capture(channels=1, samples=800, timegap=2)
306+
>>> diff = abs(y[0] - 1.1) # Should be small unless a timeout occurred.
307307
308308
Raises
309309
------

0 commit comments

Comments
 (0)