Add "Print_mat" for current directory

This commit is contained in:
Paul-Corbalan 2020-04-29 09:46:52 +02:00
parent f2730b39c6
commit c148a8196a
1 changed files with 10 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def Import_dessinBitmap(file):
return array.tolist() return array.tolist()
def Afficher_Array(y): def Afficher_array(y):
space = ' ' # <--- Pour modifier les espaces space = ' ' # <--- Pour modifier les espaces
N1 = len(y) N1 = len(y)
for i in range(N1): for i in range(N1):
@ -71,3 +71,12 @@ def Print_mat(y, fichier, rep=".\\", afficher=False, save=True):
if afficher: if afficher:
plt.show() plt.show()
plt.close() plt.close()
def main(repc=".\\", reps=".\\"):
for f in glob.glob(repc + "*.npy"):
y = Import_dessinBitmap(f)
Print_mat(y, f, rep=reps)
main()