#NEWLINE# def curate_plot_list( plots ) : #NEWLINE# #INDENT# delete_nodes = [ ] #NEWLINE# for plot in plots : #NEWLINE# #INDENT# if os . path . exists ( plot . input_csv ) : #NEWLINE# #INDENT# if ( not os . path . getsize ( plot . input_csv ) ) : #NEWLINE# #INDENT# logger . warning ( '%s file is empty. No plot corresponding to this file will be generated' , plot . input_csv ) #NEWLINE# delete_nodes . append ( plot ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# logger . warning ( '%s file does not exist. No plot corresponding to this file will be generated' , plot . input_csv ) #NEWLINE# delete_nodes . append ( plot ) #NEWLINE# #UNINDENT# #UNINDENT# for node in delete_nodes : #NEWLINE# #INDENT# plots . remove ( plot ) #NEWLINE# #UNINDENT# return plots