File indexing completed on 2023-03-17 11:28:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 from __future__ import print_function
0028 import sys
0029 import os
0030 import re
0031
0032 directory=sys.argv[1]
0033 oldV=sys.argv[2]
0034 newV=sys.argv[3]
0035 sample=sys.argv[4]
0036
0037
0038 list = os.listdir(directory)
0039
0040
0041 template=open("makeWebpage.html","r")
0042 page=open(directory+"/index.html","w")
0043
0044
0045 for line in template:
0046 if(re.search(r'blablabla',line)!=None):
0047 page.write(sys.argv[1])
0048 else:
0049 page.write(line)
0050
0051 page.write('<h1> Track based conversions: '+sys.argv[3]+' vs '+sys.argv[2]+' Validation<br> Sample used: '+sys.argv[4]+ '<br><h3>In all plots below, '+sys.argv[2]+' is in purple, '+sys.argv[3]+' in black<br> Responsible: N. Marinelli</h3>')
0052
0053
0054 for i in range(len(list)):
0055 if(re.search(r'gif',list[i])!=None):
0056 print(list[i])
0057 page.write('<a href=" '+list[i])
0058 page.write('" onMouseOver="ThumbnailPlot(')
0059 page.write("'"+list[i]+"'), ClearNotes(), ThumbnailNote() ")
0060 page.write('"> <img src="'+list[i]+' " style="height:22px; width:25px;"><small>'+list[i]+' </small></a> <br> \n')
0061
0062
0063 page.write('<br>\n')
0064 page.write('<div id="thumb_gen"><a href="#" id="thumblink_l"><img src="" id="thumb_l" width=0 height=0 border=0></a></div> \n')
0065 page.write('</body> \n')
0066 page.write(' </html>\n')
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083