X-Git-Url: https://git.immae.eu/?p=perso%2FDenise%2Foms.git;a=blobdiff_plain;f=gestionOMS.py;h=8c2b91001c8deae5d8926bea644d1f1de0a633f9;hp=cc634328fb42f68accbc43633e10c2219b11a578;hb=38b5e10ae817f79fb10b6c4b8655e6d95b2885b8;hpb=915e90bbf0bee1d69c51a749a4f2be85b9fda091 diff --git a/gestionOMS.py b/gestionOMS.py index cc63432..8c2b910 100644 --- a/gestionOMS.py +++ b/gestionOMS.py @@ -5,9 +5,8 @@ Created on Mon May 18 08:59:11 2020 @author: sekhmet """ -from gestion_erreurs import * -from configuration import * -from gestion_couleurs import * +#from gestion_erreurs import erreur, warning, debug +from gestion_couleurs import degrade_choix import csv @@ -82,9 +81,11 @@ def lire_fichier_csv(fichier): return table -def extraire_colonne(table,ncol,maxi): +def extraire_colonne(table,ncol,maxi=-1): """ extrait une colonne d'un tableau double, de taille maximum maxi""" t = [] + if maxi==-1: + maxi = len(table) for i in range( min(len(table),maxi) ): t.append(table[i][ncol]) return t