sacha.serny
3 years ago
1 changed files with 17 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||||
|
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 |
Loading…
Reference in new issue