Skip to content
Snippets Groups Projects
Commit 9a725fb7 authored by Robin Oppermann's avatar Robin Oppermann
Browse files

Next improvements according to Britta's review

parent b1c4be76
No related branches found
No related tags found
1 merge request!154Add evaluation of total number of nodes that ever reached the energy limits to…
Pipeline #
......@@ -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):
......
  • Contributor
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment