From c148a8196ad4610fbc03fac6dcf25915f236c848 Mon Sep 17 00:00:00 2001 From: Paul-Corbalan Date: Wed, 29 Apr 2020 09:46:52 +0200 Subject: [PATCH] Add "Print_mat" for current directory --- Divers/Affichage.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Divers/Affichage.py b/Divers/Affichage.py index 64f0086..94210b5 100644 --- a/Divers/Affichage.py +++ b/Divers/Affichage.py @@ -11,7 +11,7 @@ def Import_dessinBitmap(file): return array.tolist() -def Afficher_Array(y): +def Afficher_array(y): space = ' ' # <--- Pour modifier les espaces N1 = len(y) for i in range(N1): @@ -71,3 +71,12 @@ def Print_mat(y, fichier, rep=".\\", afficher=False, save=True): if afficher: plt.show() plt.close() + + +def main(repc=".\\", reps=".\\"): + for f in glob.glob(repc + "*.npy"): + y = Import_dessinBitmap(f) + Print_mat(y, f, rep=reps) + + +main()