comparison scripts/evaluation_stats.py @ 1061:9ed0483f7ded

Scripts: evaluation_stats bug fixes
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Tue, 14 Jul 2015 20:09:25 +0100
parents bf85e8def24c
children ef2d63555702
comparison
equal deleted inserted replaced
1060:bf85e8def24c 1061:9ed0483f7ded
3 3
4 import xml.etree.ElementTree as ET 4 import xml.etree.ElementTree as ET
5 import os 5 import os
6 6
7 # XML results files location (modify as needed): 7 # XML results files location (modify as needed):
8 folder_name = "xml_with_statements" # Looks in 'saves/' folder from 'scripts/' folder 8 folder_name = "../saves" # Looks in 'saves/' folder from 'scripts/' folder
9 9
10 # Turn number of seconds (int) to '[minutes] min [seconds] s' (string) 10 # Turn number of seconds (int) to '[minutes] min [seconds] s' (string)
11 def seconds2timestr(time_in_seconds): 11 def seconds2timestr(time_in_seconds):
12 time_in_minutes = int(time_in_seconds/60) 12 time_in_minutes = int(time_in_seconds/60)
13 remaining_seconds = int(time_in_seconds%60) 13 remaining_seconds = int(time_in_seconds%60)
77 77
78 page_number += 1 # increase page count for this specific test 78 page_number += 1 # increase page count for this specific test
79 number_of_pages += 1 # increase total number of pages 79 number_of_pages += 1 # increase total number of pages
80 time_per_page_accum += duration # total duration (for average time spent per page) 80 time_per_page_accum += duration # total duration (for average time spent per page)
81 81
82 # print total duration of this test 82 # print total duration of this test
83 print " TOTAL: " + seconds2timestr(total_duration) 83 print " TOTAL: " + seconds2timestr(total_duration)
84 84
85 85
86 # PRINT EVERYTHING 86 # PRINT EVERYTHING
87 87
88 print "Number of XML files: " + str(number_of_XML_files) 88 print "Number of XML files: " + str(number_of_XML_files)