Skip to content

Commit

Permalink
updates to evaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Quinlan committed Apr 18, 2022
1 parent 2ca8662 commit ef86e9f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
26 changes: 16 additions & 10 deletions evaluate/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,24 @@


# **** These are other config settings, which typically are not changed ****
"codec":"\"h264\"",
"initBuffer":2,
"maxBuffer":60,
"maxHeight":3000,
"streamDuration":10,
"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\"}\"",
"expRatio":0.2,
"quic":"\"off\"",
"useTestbed":"\"off\"",
"QoE":"\"on\""
'"codec"':"\"h264\"",
'"initBuffer"':2,
'"maxBuffer"':60,
'"maxHeight"':3000,
'"streamDuration"':10,
'"storeDash"' : "\"off\"",
'"getHeaders"' : "\"off\"",
'"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\\"}"',
'"expRatio"':0.2,
'"quic"':"\"off\"",
'"useTestbed"':"\"off\"",
'"QoE"':"\"on\""
}

# '"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"},

# print output of godash to the terminal screen
terminalPrint=False
terminalPrintval=bool_to_val(terminalPrint)
Expand Down
11 changes: 8 additions & 3 deletions evaluate/test_goDASH.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def eval_goDASH():
fo.write('{\n')
for k, v in dict.items():

print(k, v)

# write the key to the config file
fo.write('\t\t' + str(k) + ' : ')

Expand Down Expand Up @@ -121,12 +123,15 @@ def eval_goDASH():
if v != '"off"':
getHeaders = True
# write the value
fo.write(str(v+","))
fo.write(str(godash_run_dict[k])+",")

# set the kind of default values - these are changed as per the settings file
else:
# write the value
fo.write(str(v)+",")
# if "printHeader" in k:
# fo.write(str(v)+ ",")
# else:
# write the value
fo.write(str(godash_run_dict[k])+",")
# write a return carriage
fo.write('\n')
fo.write('}')
Expand Down

0 comments on commit ef86e9f

Please sign in to comment.