# HG changeset patch # User Brecht De Man # Date 1449609194 -3600 # Node ID 18dc725bb5c222e67a50610c09eeb8d44e7d4add # Parent 17b550310734f4d5b7512a7ffbb46a4c6c92acc0 Scripts: generate_report.py fix (wrong directory passed on to score_plot.py) diff -r 17b550310734 -r 18dc725bb5c2 scripts/generate_report.py --- a/scripts/generate_report.py Tue Dec 08 17:17:39 2015 +0100 +++ b/scripts/generate_report.py Tue Dec 08 22:13:14 2015 +0100 @@ -116,7 +116,7 @@ if render_figures: subprocess.call("python timeline_view_movement.py '"+folder_name+"'", shell=True) subprocess.call("python score_parser.py '"+folder_name+"'", shell=True) - subprocess.call("python score_plot.py '"+folder_name+"'", shell=True) + subprocess.call("python score_plot.py '"+folder_name+"ratings/'", shell=True) # get every XML file in folder files_list = os.listdir(folder_name) diff -r 17b550310734 -r 18dc725bb5c2 scripts/score_plot.py --- a/scripts/score_plot.py Tue Dec 08 17:17:39 2015 +0100 +++ b/scripts/score_plot.py Tue Dec 08 22:13:14 2015 +0100 @@ -115,7 +115,7 @@ # CODE # get every csv file in folder -for file in os.listdir(rating_folder): # You have to put this in folder where rating csv files are. +for file in os.listdir(rating_folder): if file.endswith(".csv"): page_name = file[:-4] # file name (without extension) is page ID