diff --git a/py_main.py b/py_main.py new file mode 100644 index 0000000..d305b2f --- /dev/null +++ b/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 \ No newline at end of file