You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
521 B
17 lines
521 B
2 years ago
|
import numpy as np
|
||
|
def lecture(name):
|
||
|
lst_date = []
|
||
|
lst_conso = []
|
||
|
lst_t_moy = []
|
||
|
lst_t_ref = []
|
||
|
with open(name) as fic:
|
||
|
fic.readline()
|
||
|
for ligne in fic:
|
||
|
date,conso, t_moy, t_ref = ligne.split(';')
|
||
|
lst_date.append(date)
|
||
|
lst_conso.append(float(conso))
|
||
|
lst_t_moy.append(float(t_moy))
|
||
|
lst_t_ref.append(float(t_ref))
|
||
|
return(np.array(lst_date), np.array(lst_conso), np.array(lst_t_moy), np.array(lst_t_ref))
|
||
|
|
||
|
def
|