Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at and make sure that your projects conform to the requirements.

Commit 2971ee24 authored by Juliane Aulbach's avatar Juliane Aulbach
Browse files

Fix config creation and analyze

parent 8da400dd
......@@ -6,7 +6,7 @@ import numpy as np
import argparse
import ast
TEST = 'performance_bw_despite_loss'
TEST = 'simul_probe_rtt'
RUN_SH = 'run_' + TEST + '.sh'
CC_ALGO = 'bbr'
......@@ -25,14 +25,14 @@ def generate_configs(dir):
config = os.path.join(dir, '{}.conf'.format(TEST))
for rtt in steps:
# Write config into folder
config = os.path.join(dir, TEST+'{}ms.conf'.format(rtt))
config = os.path.join(dir, TEST+'_{}_{}.conf'.format(CC_ALGO, rtt))
with open(config, 'w') as config_file:
for i in range(1, 5):
config_file.write('host, {}, {}ms, 0, {}\n'.format(CC_ALGO, rtt, DURATION))
# Write commands to run_file
run_file.write('python -l 500ms {0}/{1} -n "{1}_{2}_{3}\n"'.format(dir, TEST, CC_ALGO, rtt))
run_file.write('python -r -d test/')
run_file.write('python -l 500ms {}/{}_{}_{}.conf\n'.format(dir, TEST, CC_ALGO, rtt))
run_file.write('python -r -d test/\n')
# Make run file executable
st = os.stat(RUN_SH)
......@@ -52,7 +52,7 @@ def analyze(dir):
info_file = os.path.join(path, 'csv_data', '')
bbr_file = os.path.join(path, 'csv_data', 'bbr_values.csv')
bbr_file = os.path.join(path, 'csv_data', 'bbr_values.csv.gz')
if os.path.exists(info_file) and os.path.exists(bbr_file):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment