X-Git-Url: https://git.immae.eu/?p=perso%2FDenise%2Foms.git;a=blobdiff_plain;f=gestionOMS.py;h=8c2b91001c8deae5d8926bea644d1f1de0a633f9;hp=cebd1eb7a05380479c638cc86a5ab0665580a043;hb=348a7b3607d7cd722e8d11765d7063a9df863db0;hpb=d03279e72fcb75ddf784fbd0dcce2b2b15f5ff09 diff --git a/gestionOMS.py b/gestionOMS.py index cebd1eb..8c2b910 100644 --- a/gestionOMS.py +++ b/gestionOMS.py @@ -5,8 +5,8 @@ Created on Mon May 18 08:59:11 2020 @author: sekhmet """ -from gestion_erreurs import * -from gestion_couleurs import * +#from gestion_erreurs import erreur, warning, debug +from gestion_couleurs import degrade_choix import csv @@ -81,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