NTRT Simulator
v1.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Pages
bestScores.py
1
""" Filter out the best episodes from argv[1] as dictated by their distance traveled """
2
""" Note: prints entire episode data, including parameters, as opposed to just distances """
3
4
import
sys
5
6
bestDistances = []
7
threshold = 25.0
# Score (distance traveled)
8
9
try
:
10
f = open(sys.argv[1],
'
r')
11
for
line
in
f:
12
if
(float(line.partition(
','
)[0]) > threshold):
13
bestDistances.append(line)
14
finally
:
15
f.close()
16
17
for
p
in
bestDistances: sys.stdout.write(p)
18
dev
steve
Escape_T6
logs
bestScores.py
Generated on Fri Jan 9 2015 15:38:48 for NTRT Simulator by
1.8.7