From a684d56bea72748f1dd1e9774c029ad24aae6627 Mon Sep 17 00:00:00 2001 From: Clement Remi <remi.clement@irstea.fr> Date: Fri, 18 Dec 2020 23:01:17 +0100 Subject: [PATCH] =?UTF-8?q?correct=20ABMN=20probl=C3=A9me=20when=20you=20h?= =?UTF-8?q?ave=20only=20one=20quadripole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ohmpi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ohmpi.py b/Ohmpi.py index bc38c981..6278553d 100644 --- a/Ohmpi.py +++ b/Ohmpi.py @@ -194,6 +194,9 @@ Main loop """ N=read_quad("ABMN.txt",pardict.get("nb_electrodes")) # load quadripole file +if N.ndim == 1: + N = N.reshape(1, 4) + for g in range(0,pardict.get("nbr_meas")): # for time-lapse monitoring for i in range(0,N.shape[0]): # loop over quadripoles -- GitLab