Browse Source

1st commit

master
sacha.serny 3 years ago
parent
commit
d8ad8937ff
  1. 17
      py_main.py

17
py_main.py

@ -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…
Cancel
Save