|
string | RefreshWebPage.__author__ = "Mauro Verzetti (mauro.verzetti@cern.ch)" |
|
string | RefreshWebPage.__doc__ = """Script to update the web-page to show newly updated results. First upload the TauID directory in the proper location in $PastResults""" |
|
tuple | RefreshWebPage.cfg_file = glob.glob(tauid_dir+'*/Config/showtags.txt') |
|
tuple | RefreshWebPage.config = open(cfg_file) |
|
list | RefreshWebPage.custom_made = [d for d in webDir_subdirs if not d in official_releases and not d in special_releases] |
|
string | RefreshWebPage.custom_made_links = '' |
|
list | RefreshWebPage.data_html = [] |
|
tuple | RefreshWebPage.datasets = filter(lambda x: os.path.isdir(tauid_dir+x) and not x == 'Reference', os.listdir(tauid_dir)) |
|
string | RefreshWebPage.dir_link = 'TauID/' |
|
tuple | RefreshWebPage.dname = dataset.split('_') |
|
tuple | RefreshWebPage.main_web_page = templates.main_page_template%(official_releases_links, special_releases_links, custom_made_links) |
|
tuple | RefreshWebPage.main_web_page_html = open(main_web_page_path,'w') |
|
string | RefreshWebPage.main_web_page_path = webDir+'index.html' |
|
tuple | RefreshWebPage.official_releases = sorted( filter( lambda x: re.findall(r'^CMSSW_[0-9]+_[0-9]+_[0-9]+(?:_pre[0-9]+)?$',x), webDir_subdirs), key=unpackRelease) |
|
string | RefreshWebPage.official_releases_links = '' |
|
tuple | RefreshWebPage.parser = OptionParser(description=__doc__) |
|
list | RefreshWebPage.pics = [path.split(rel+'/')[1] for path in glob.glob(tauid_dir+dataset+'/*.png')] |
|
tuple | RefreshWebPage.ref_file = (glob.glob(tauid_dir+'Reference/*'+dname+'.root')[0]) |
|
string | RefreshWebPage.reldir = webDir+rel+'/' |
|
tuple | RefreshWebPage.release_html_page = templates.usual_validation_template.substitute(THIS_RELEASE=rel,CONFIG=config,DATASETS=''.join(data_html) ) |
|
tuple | RefreshWebPage.release_page_html = open(release_web_page_path,'w') |
|
string | RefreshWebPage.release_web_page_path = reldir+'index.html' |
|
tuple | RefreshWebPage.rootf = (roots) |
|
tuple | RefreshWebPage.roots = glob.glob(tauid_dir+dataset+'/*.root') |
|
string | RefreshWebPage.source = 'TauID/' |
|
tuple | RefreshWebPage.special_releases = sorted( filter( lambda x: re.findall(r'^CMSSW_[0-9]+_[0-9]+_[0-9]+',x) and not x in official_releases, webDir_subdirs), key=unpackRelease) |
|
string | RefreshWebPage.special_releases_links = '' |
|
string | RefreshWebPage.tauid_dir = webDir+rel+'/TauID/' |
|
tuple | RefreshWebPage.webDir_subdirs = filter( lambda x: os.path.isdir(webDir+x), os.listdir( webDir ) ) |
|