Commit 53ea7bd4 authored by Forquet Nicolas's avatar Forquet Nicolas
Browse files

correction d'une erreur d'indexation

parent 38683b07
......@@ -27,7 +27,7 @@ def switch_mux(quadripole):
quadmux = numpy.loadtxt("quadmux.txt", delimiter=" ", dtype=int)
for i in range(0,4):
for j in range(0,5) :
GPIO.output(int(quadmux[i,j]), bool(path2elec[quadripole[i],j]))
GPIO.output(int(quadmux[i,j]), bool(path2elec[quadripole[i]-1,j]))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment