From 53ea7bd45c9db35585edeb8704ba6a7f685c9321 Mon Sep 17 00:00:00 2001 From: Nicolas Forquet <nicolas.forquet@irstea.fr> Date: Tue, 29 Oct 2019 14:52:11 +0100 Subject: [PATCH] correction d'une erreur d'indexation --- ohmpy_v_1_01.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohmpy_v_1_01.py b/ohmpy_v_1_01.py index e2a51fd5..9115a6b8 100644 --- a/ohmpy_v_1_01.py +++ b/ohmpy_v_1_01.py @@ -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])) GPIO.setmode(GPIO.BCM) -- GitLab