comparison scripts/score_plot.py @ 1418:6d47c4ed0e67

Scripts: generate_report.py fix (wrong directory passed on to score_plot.py)
author Brecht De Man <b.deman@qmul.ac.uk>
date Tue, 08 Dec 2015 22:13:14 +0100
parents 1de4c0257fa4
children 43801b3d6131
comparison
equal deleted inserted replaced
1417:3c67469e315a 1418:6d47c4ed0e67
113 113
114 114
115 # CODE 115 # CODE
116 116
117 # get every csv file in folder 117 # get every csv file in folder
118 for file in os.listdir(rating_folder): # You have to put this in folder where rating csv files are. 118 for file in os.listdir(rating_folder):
119 if file.endswith(".csv"): 119 if file.endswith(".csv"):
120 page_name = file[:-4] # file name (without extension) is page ID 120 page_name = file[:-4] # file name (without extension) is page ID
121 121
122 # get header 122 # get header
123 with open(rating_folder+file, 'rb') as readfile: # read this csv file 123 with open(rating_folder+file, 'rb') as readfile: # read this csv file