changeset 781:18dc725bb5c2

Scripts: generate_report.py fix (wrong directory passed on to score_plot.py)
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Tue, 08 Dec 2015 22:13:14 +0100
parents 17b550310734
children 1e176e95ef33
files scripts/generate_report.py scripts/score_plot.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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