Skip to content
Snippets Groups Projects
Commit 88a2f60d authored by auphelia's avatar auphelia
Browse files

[Core] Read network metrics as dictionary in throughput test function

parent d1e9ea9f
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ def throughput_test(model): ...@@ -60,7 +60,7 @@ def throughput_test(model):
process_compile = subprocess.Popen(bash_command, stdout=subprocess.PIPE) process_compile = subprocess.Popen(bash_command, stdout=subprocess.PIPE)
process_compile.communicate() process_compile.communicate()
cmd = "sshpass -p {} scp -P{} {}@{}:{}/{}/nw_runtime.txt {}".format( cmd = "sshpass -p {} scp -P{} {}@{}:{}/{}/nw_metrics.txt {}".format(
pynq_password, pynq_password,
pynq_port, pynq_port,
pynq_username, pynq_username,
...@@ -73,6 +73,7 @@ def throughput_test(model): ...@@ -73,6 +73,7 @@ def throughput_test(model):
process_compile = subprocess.Popen(bash_command, stdout=subprocess.PIPE) process_compile = subprocess.Popen(bash_command, stdout=subprocess.PIPE)
process_compile.communicate() process_compile.communicate()
file = open("{}/nw_runtime.txt".format(deployment_dir), "r") with open("{}/nw_metrics.txt".format(deployment_dir), "r") as file:
res = file.read() res = eval(file.read())
return res return res
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment