From d5c93d59f910763d8f8fc91c287f959669abf1de Mon Sep 17 00:00:00 2001 From: Nicolas Forquet <nicolas.forquet@irstea.fr> Date: Fri, 4 Oct 2019 13:00:18 +0200 Subject: [PATCH] I suppress the line corresponding to reading the interrogation scheme file with another method. Instead of reading the interrogation scheme file with another method in order to have its length. I simply used the method shape on N. --- ohmpy_v_1_01.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ohmpy_v_1_01.py b/ohmpy_v_1_01.py index 5761f77e..ee2d4765 100644 --- a/ohmpy_v_1_01.py +++ b/ohmpy_v_1_01.py @@ -41,19 +41,16 @@ sequence_delay= 30 # Delay in Second between 2 sequences stack= 1 # repetition of the current injection for each quadrupole """ -Reading the quadrupole file +Reading the quadripole file """ N=numpy.loadtxt("ABMN4.txt", delimiter=" ",dtype=int) # load quadripole file -M=open("ABMN4.txt",'r') # open quadripole file -listM=list(M) # Transform M as a list -M.close() # Close M for g in range(0,nbr_meas): # for time-lapse monitoring """ Selection electrode activées pour chaque quadripole """ - for i in range(0,len(listM)): # boucle sur les quadripôles, qui tient compte du nombre de quadripole dans le fichier ABMN + for i in range(0,N.shape[0]): # boucle sur les quadripôles, qui tient compte du nombre de quadripole dans le fichier ABMN for j in range(0,3): if j == 0: # electrode A -- GitLab