From d8ad8937ff0fb68d153c7a7c357b6096ad00bc4b Mon Sep 17 00:00:00 2001 From: "sacha.serny" Date: Mon, 9 May 2022 08:56:50 +0200 Subject: [PATCH] 1st commit --- py_main.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 py_main.py 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