Commit 615c354e authored by Joanne Hugé's avatar Joanne Hugé

Merge branch 'measure-analysis' into dev

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