From 9a725fb79df6d89cd42d665e39df5c507abbaa2e Mon Sep 17 00:00:00 2001
From: Robin Oppermann <robinopp@mail.uni-paderborn.de>
Date: Thu, 7 Sep 2017 10:53:22 +0200
Subject: [PATCH] Next improvements according to Britta's review

---
 toolkit/reportSummary/energyAnalysis.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/toolkit/reportSummary/energyAnalysis.py b/toolkit/reportSummary/energyAnalysis.py
index 86d92d71..a877cdf6 100644
--- a/toolkit/reportSummary/energyAnalysis.py
+++ b/toolkit/reportSummary/energyAnalysis.py
@@ -60,14 +60,13 @@ class EnergyData:
         self.currentTotalHosts += 1
         if energyLevel < 0.1:
             self.currentHostsThatEverReachedLowEnergyLimit.add(host)
-            if(energyLevel == 0 ):
-                # Draws two functions over the same x values.
+            if energyLevel == 0:
                 self.currentHostsThatEverReachedZeroEnergy.add(host)
                 self.currentZeroEnergyHosts += 1
             else:
                 self.currentLowEnergyHosts += 1
 
-# Draws two functions over the same x values.
+# Draws the four functions over the same x values.
 # Labels are selected as appropriate for energy analysis.
 # In the end saves the plot
 def drawAndSafePlots(x, y_lowEnergy, y_noEnergy, y_totalLowEnergy, y_totalNoEnergy, graphicFileName):
-- 
GitLab