Skip to content

Commit 3c42cc4

Browse files
Modify range_slicer calls to access first output
Update range_slicer output to use first element.
1 parent 9f30939 commit 3c42cc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rangeslicer_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
control_1 = pot_1.value
4747

4848
# calculate output values and print (or plot in Mu)
49-
out_0 = ctrl_0.range_slicer(control_0)
50-
out_1 = ctrl_1.range_slicer(control_1)
49+
out_0 = ctrl_0.range_slicer(control_0)[0]
50+
out_1 = ctrl_1.range_slicer(control_1)[0]
5151
print((control_0 / 65535, control_1 / 65535, out_0, out_1))
5252

5353
time.sleep(0.1) # pause for 0.1 second

0 commit comments

Comments
 (0)