Add "Print_mat" for current directory
This commit is contained in:
parent
f2730b39c6
commit
c148a8196a
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue