~ma5dev/madanalysis5/v1.5beta

« back to all changes in this revision

Viewing changes to madanalysis/IOinterface/latex_report_writer.py

  • Committer: Eric Conte
  • Date: 2016-12-08 10:28:55 UTC
  • Revision ID: eric.conte@cern.ch-20161208102855-thahw9h2be839yu6
update all-file with MA5banner + logging.getLogger(MA5)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        if os.path.isfile(stylepath+'/jheppub.sty'):
57
57
            os.system('cp ' + stylepath + '/jheppub.sty ' + dirname)
58
58
        else:
59
 
            logging.error('jheppub.sty not found. Cannot generate a latex report.')
 
59
            logging.getLogger('MA5').error('jheppub.sty not found. Cannot generate a latex report.')
60
60
 
61
61
 
62
62
    @staticmethod    
182
182
        self.current_col=self.current_col+1
183
183
 
184
184
        if  self.current_col>self.number_col:
185
 
            logging.warning("The number of the current column is larger than the total number of declared columns.")
 
185
            logging.getLogger('MA5').warning("The number of the current column is larger than the total number of declared columns.")
186
186
        if self.first_cell==True:
187
187
            self.file.write("      \\cellcolor{"+ColorType.convert2string(color)+"}")
188
188
            self.first_cell=False
216
216
            self.file.write("}\n  \\end{center}\n\\end{figure}\n")
217
217
#            self.WriteSpacor()
218
218
        else:
219
 
            logging.warning(thefile+self.ext+" does not exist.")
 
219
            logging.getLogger('MA5').warning(thefile+self.ext+" does not exist.")
220
220
        
221
221
    def WriteFoot(self):
222
222
        if self.bullet!=0:
223
 
            logging.warning("the number of 'OpenBullet()' and 'CloseBullet()' are different.")
 
223
            logging.getLogger('MA5').warning("the number of 'OpenBullet()' and 'CloseBullet()' are different.")
224
224
        if self.table!=0:
225
 
            logging.warning("there is an open table. Please check for a missing 'EndTable()' tag.")
 
225
            logging.getLogger('MA5').warning("there is an open table. Please check for a missing 'EndTable()' tag.")
226
226
        self.file.write("\\end{document}\n")