diff options
author | Denise sur Lya <sekhmet@lya> | 2021-02-18 20:05:29 +0100 |
---|---|---|
committer | Denise sur Lya <sekhmet@lya> | 2021-02-18 20:05:29 +0100 |
commit | cf0d4c8c36224ca7059e99d03c25abaf694011d7 (patch) | |
tree | 2d1642c8576ee5d07dee33b399fae6ef05022b87 /gestionOMS.py | |
parent | a680b2f78891692be215013481e167da2fffb5d8 (diff) | |
download | oms-cf0d4c8c36224ca7059e99d03c25abaf694011d7.tar.gz oms-cf0d4c8c36224ca7059e99d03c25abaf694011d7.tar.zst oms-cf0d4c8c36224ca7059e99d03c25abaf694011d7.zip |
extrapolation des courbes et calculs associƩs
Diffstat (limited to 'gestionOMS.py')
-rw-r--r-- | gestionOMS.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gestionOMS.py b/gestionOMS.py index b00b93b..8c2b910 100644 --- a/gestionOMS.py +++ b/gestionOMS.py | |||
@@ -81,9 +81,11 @@ def lire_fichier_csv(fichier): | |||
81 | return table | 81 | return table |
82 | 82 | ||
83 | 83 | ||
84 | def extraire_colonne(table,ncol,maxi): | 84 | def extraire_colonne(table,ncol,maxi=-1): |
85 | """ extrait une colonne d'un tableau double, de taille maximum maxi""" | 85 | """ extrait une colonne d'un tableau double, de taille maximum maxi""" |
86 | t = [] | 86 | t = [] |
87 | if maxi==-1: | ||
88 | maxi = len(table) | ||
87 | for i in range( min(len(table),maxi) ): | 89 | for i in range( min(len(table),maxi) ): |
88 | t.append(table[i][ncol]) | 90 | t.append(table[i][ncol]) |
89 | return t | 91 | return t |