# HG changeset patch # User Brecht De Man # Date 1449609194 -3600 # Node ID 6d47c4ed0e67c0a62e81875a7aeda34a449b217c # Parent 3c67469e315a27cc0322f1ce7d5cd0c119f296e4 Scripts: generate_report.py fix (wrong directory passed on to score_plot.py) diff -r 3c67469e315a -r 6d47c4ed0e67 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 3c67469e315a -r 6d47c4ed0e67 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