Skip to content

Commit ef86e9f

Browse files
author
Jason Quinlan
committed
updates to evaluate
1 parent 2ca8662 commit ef86e9f

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

evaluate/config/settings.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,24 @@
3232

3333

3434
# **** These are other config settings, which typically are not changed ****
35-
"codec":"\"h264\"",
36-
"initBuffer":2,
37-
"maxBuffer":60,
38-
"maxHeight":3000,
39-
"streamDuration":10,
40-
"printHeader":"\"{\"Algorithm\":\"on\",\"Seg_Dur\":\"on\",\"Codec\":\"on\",\"Width\":\"on\",\"Height\":\"on\",\"FPS\":\"on\",\"Play_Pos\":\"on\",\"RTT\":\"on\",\"Seg_Repl\":\"off\",\"Protocol\":\"on\",\"TTFB\":\"on\",\"TTLB\":\"on\",\"P.1203\":\"on\",\"Clae\":\"on\",\"Duanmu\":\"on\",\"Yin\":\"on\",\"Yu\":\"on\"}\"",
41-
"expRatio":0.2,
42-
"quic":"\"off\"",
43-
"useTestbed":"\"off\"",
44-
"QoE":"\"on\""
35+
'"codec"':"\"h264\"",
36+
'"initBuffer"':2,
37+
'"maxBuffer"':60,
38+
'"maxHeight"':3000,
39+
'"streamDuration"':10,
40+
'"storeDash"' : "\"off\"",
41+
'"getHeaders"' : "\"off\"",
42+
'"printHeader"':'"{\\"Algorithm\\":\\"on\\",\\"Seg_Dur\\":\\"on\\",\\"Codec\\":\\"on\\",\\"Width\\":\\"on\\",\\"Height\\":\\"on\\",\\"FPS\\":\\"on\\",\\"Play_Pos\\":\\"on\\",\\"RTT\\":\\"on\\",\\"Seg_Repl\\":\\"off\\",\\"Protocol\\":\\"on\\",\\"TTFB\\":\\"on\\",\\"TTLB\\":\\"on\\",\\"P.1203\\":\\"on\\",\\"Clae\\":\\"on\\",\\"Duanmu\\":\\"on\\",\\"Yin\\":\\"on\\",\\"Yu\\":\\"on\\"}"',
43+
'"expRatio"':0.2,
44+
'"quic"':"\"off\"",
45+
'"useTestbed"':"\"off\"",
46+
'"QoE"':"\"on\""
4547
}
4648

49+
# '"printHeader"':{"Algorithm":"on","Seg_Dur":"on","Codec":"on","Width":"on","Height":"on",
50+
# "FPS":"on","Play_Pos":"on","RTT":"on","Seg_Repl":"off","Protocol":"on","TTFB":"on",
51+
# "TTLB":"on","P.1203":"on","Clae":"on","Duanmu":"on","Yin":"on","Yu":"on"},
52+
4753
# print output of godash to the terminal screen
4854
terminalPrint=False
4955
terminalPrintval=bool_to_val(terminalPrint)

evaluate/test_goDASH.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def eval_goDASH():
8686
fo.write('{\n')
8787
for k, v in dict.items():
8888

89+
print(k, v)
90+
8991
# write the key to the config file
9092
fo.write('\t\t' + str(k) + ' : ')
9193

@@ -121,12 +123,15 @@ def eval_goDASH():
121123
if v != '"off"':
122124
getHeaders = True
123125
# write the value
124-
fo.write(str(v+","))
126+
fo.write(str(godash_run_dict[k])+",")
125127

126128
# set the kind of default values - these are changed as per the settings file
127129
else:
128-
# write the value
129-
fo.write(str(v)+",")
130+
# if "printHeader" in k:
131+
# fo.write(str(v)+ ",")
132+
# else:
133+
# write the value
134+
fo.write(str(godash_run_dict[k])+",")
130135
# write a return carriage
131136
fo.write('\n')
132137
fo.write('}')

0 commit comments

Comments
 (0)