Commit d5849129 authored by Joanne Hugé's avatar Joanne Hugé

Fix bug preventing graph from being generated

parent b117373c
......@@ -227,7 +227,7 @@ class MeasureSetHandler:
for mid in self.measure_sets[mtype]['ids']:
measure = self.get_measure_set("{}{}".format(mtype, mid))
# Measures with lost packets are not relevant to graph
if 'lost_packets' not in measure.metadata or measure.metadata['lost_packets'] == 0:
if measure.metadata['lost_packets'] == "0":
measures.append(measure)
mids.append(mid)
if len(measures) == 0:
......@@ -276,7 +276,6 @@ class MeasureSetHandler:
fig.set_size_inches(15.0, 8.0)
# Save the graph
plt.savefig("{}/{}{}.png".format(MeasureSetHandler.graphs_dir, mtype, prop_name))
plt.clf()
......
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