diff --git a/scripts/build_tests.py b/scripts/build_tests.py index c290ac7..5ead3c7 100644 --- a/scripts/build_tests.py +++ b/scripts/build_tests.py @@ -78,9 +78,9 @@ def main(ctx: typer.Context, tree_depth = 1 + int(math.log(num_comm, 2)) if num_comm > 1 else 1 num_nodes_branch= tree_depth * comm_size - debug_str = ( f" #num_nodes={num_nodes}," + debug_str = ( f"\"num_nodes={num_nodes}," f" total_tree_nodes={num_comm}, comm_size={comm_size}, remainder={remainder}," - f" computed={prob:f}(req={failure_threshold:f}), depth={tree_depth}" + f" computed={prob:f}(req={failure_threshold:f}), depth={tree_depth}\"" ) if debug else "" tree_spec = f"tree,{num_nodes},{comm_size},{debug_str}" diff --git a/scripts/run.sh b/scripts/run.sh index d04f417..e6248aa 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -16,7 +16,7 @@ do echo "overlay,nodes,committees_or_depth,description" > $dir$prefix"_"$p".csv" for i in $network_sizes do - python3 build_tests.py --num-nodes $i --failure-threshold $p >> $dir$prefix"_"$p".csv" + python3 build_tests.py --num-nodes $i --failure-threshold $p --debug >> $dir$prefix"_"$p".csv" echo "num-nodes = $i, failure-threshold = $p" done done