makeHTMLView.py
Go to the documentation of this file.
1 #!/bin/env python
2 print "\nrun : --- Make HTML view"
3 ########################### Imports
4 import PageMakers as PM
5 import time
6 ########################### Option parser
7 from optparse import OptionParser
8 parser = OptionParser()
9 parser.add_option("-r", "--reuse_histograms", help="re use histograms if they exist", action="store_true", dest="reuse", default=False)
10 parser.add_option("-c", "--caching", help="turn on caching", action="store_true", dest="cache", default=False)
11 parser.add_option("-s", "--status_only", help="check statuses only", action="store_true", dest="status", default=False)
12 parser.add_option("-t", "--testing", help="run out of testing directories", action="store_true", dest="testing", default=False)
13 parser.add_option("-f", "--filter", help="only run on components matching this pattern: <component_type>:<version>", action="store", type="string", dest="filter", default="*:*")
14 parser.add_option("-v", "--verbose", help="turn on verbose mode", action="store_true", dest="verbose", default=False)
15 (options, args) = parser.parse_args()
16 if options.verbose:
17  print "run : --- Options"
18  print "run : re-use histograms: ",options.reuse
19  print "run : status only: ",options.status
20  print "run : caching: ",options.cache
21  print "run : testing: ",options.testing
22  print "run : filter: ",options.filter
23  print "run : verbose mode: ",options.verbose
24 start_time = time.time()
25 ########################### Run page makers
26 if options.verbose: print "run : --- Making validation pages"
27 status = PM.makeValidationPages(options)
28 
29 if options.verbose: print "run : --- Making front page"
30 PM.makeFrontPage(options, status=status)
31 ########################### Done
32 dt = time.time() - start_time
33 print "run : time: {:.2f} s".format(dt)
34 print "run : --- Done\n"
std::string format(const int32_t &value, const int &ndigits=8)
Definition: HexUtils.cpp:14