|
|
@ -1,6 +1,5 @@ |
|
|
|
def lecture(fichier): |
|
|
|
temp_jour = [] |
|
|
|
conso = [] |
|
|
|
with open(fichier, "r") as menu: |
|
|
|
menu.readline() |
|
|
|
for ligne in menu: |
|
|
@ -67,7 +66,7 @@ def numeroJour(date): |
|
|
|
return num_jour |
|
|
|
|
|
|
|
|
|
|
|
def moyenne_liste |
|
|
|
def moyenne_liste(): |
|
|
|
temp_jour, = lecture("pic-journalier-consommation.csv") |
|
|
|
temp_num_jour = [] |
|
|
|
for i in range(365): |
|
|
@ -89,7 +88,9 @@ def moyenne_liste |
|
|
|
moy_temp_moy += lst_temp_moy[n] |
|
|
|
moy_temp_ref += lst_temp_ref[n] |
|
|
|
moy_conso = moy_conso / len(lst_conso) |
|
|
|
temp_num_jour |
|
|
|
moy_temp_moy = moy_temp_moy / len(lst_temp_moy) |
|
|
|
moy_temp_ref = moy_temp_ref / len(lst_temp_ref) |
|
|
|
temp_num_jour.append([i, moy_conso, moy_temp_moy, moy_temp_ref]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|