Bonjour à tous

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
for i in comb:
    isotop1_path=combine(str(i[0]))
    isotop2_path=combine(str(i[1]))
    f=60
    file="{}_{}-{} ".format(str(i), f, 100-f)
    #file=TreatOneCombination( i, 20 )
    dirName ='Radionucleide/'+str(file)+'/'
    try:
        os.mkdir(dirName)
        print("Directory " , dirName ,  " Created ") 
    except FileExistsError:
        print("Directory " , dirName ,  " already exists")
    for g,j,k in zip(isotop1_path,isotop2_path,range(len(isotop2_path))):    
        x=plot_spectre(str(g))
        y=plot_spectre(str(j))
        figure=dirName+str(i)+str(k)+'.png'
        c=f*x+(100-f)*y
        plt.vlines(x=[i for i in range(0,2200,15)],ymin=0,ymax=c,color='black')
        plt.plot([i for i in range(0,2200,15)],c,'k')
        plt.savefig(figure)`enter code here
        plt.show()
à la fin il m'affiche quelque figures puis ce message d'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\rMhamdi '
aucun fichier n'est endommagé (je l'ai testé avec pandas et tous marchent bien)
j'utilise xlrd version