X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fccn_emu_live%2Fdce_4_nodes_linear.py;fp=examples%2Fccn_emu_live%2Fdce_4_nodes_linear.py;h=799e4e408121187342dad268b6e0eab217382b20;hb=b4af9a40867beff8660612fe20d3838cb375f159;hp=3a7221d7dcaf435305f833283fa7f92e68087775;hpb=b3292d8429f07d0e9d21a3ec2d81dbc4b18332d1;p=nepi.git diff --git a/examples/ccn_emu_live/dce_4_nodes_linear.py b/examples/ccn_emu_live/dce_4_nodes_linear.py index 3a7221d7..799e4e40 100644 --- a/examples/ccn_emu_live/dce_4_nodes_linear.py +++ b/examples/ccn_emu_live/dce_4_nodes_linear.py @@ -46,7 +46,7 @@ def avg_interest_rtt(ec, run): # statistics on RTT rtts = [content_names[content_name]["rtt"] \ - for content_name in list(content_names.keys())] + for content_name in content_names] # sample mean and standard deviation sample = numpy.array(rtts) @@ -78,7 +78,7 @@ def post_process(ec, runs): low = numpy.array([float(m[1]) for m in metrics]) high = numpy.array([float(m[2]) for m in metrics]) error = [y - low, high - y] - x = list(range(1,runs + 1)) + x = range(1,runs + 1) # plot average RTT and confidence interval for each iteration pyplot.errorbar(x, y, yerr = error, fmt='o')