Commit 9d4ab76b authored by Alexandre Levieux's avatar Alexandre Levieux

Fix bug log error

parent 07e909c8
......@@ -481,8 +481,6 @@ def add_spectrum_to_plot(fig,myspectrum,vmin,vmax,colormap,cb_label,nrow,ncolumn
for cpt in part_u:
ppart=myspectrum.spec_data.part*0
ppart[myspectrum.spec_data.part==cpt]=cpt
logging.error(cpt)
logging.error(ccc)
logging.debug('partition cpt = %s -> color = %s',cpt,ccc[np.int(cpt)])
if canPlotContour:
plt.contour(*init_sp(myspectrum.spec_data.k,myspectrum.spec_data.phi,ppart),levels=[0],colors=ccc[np.int(cpt)])
......
......@@ -67,8 +67,8 @@ if __name__ == "__main__":
currentSpectrum = SpectrumReader.read_spectrum(input_file, mode).write(output_file+'.png')#add .png at the end agrouaze august 2018 fix missing .png at the end of the filenames
nbsuccess += 1
except Exception as e:
logging.error(traceback.format_exc())
print('exception occured:')
logging.error(traceback.format_exc())
filewriter = open(filesinerror, 'a')
filewriter.write(line)
filewriter.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment