From 877b35cc3f576c36f6bb65d17fdec628946bc006 Mon Sep 17 00:00:00 2001
From: Britta Heymann <britta_hey@web.de>
Date: Thu, 5 Oct 2017 13:15:09 +0200
Subject: [PATCH] Change order of function return

To fit with next function call.
---
 toolkit/reportSummary/broadcastAnalysis.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/toolkit/reportSummary/broadcastAnalysis.py b/toolkit/reportSummary/broadcastAnalysis.py
index 07759e99..444aae22 100644
--- a/toolkit/reportSummary/broadcastAnalysis.py
+++ b/toolkit/reportSummary/broadcastAnalysis.py
@@ -32,7 +32,7 @@ def findLinesConcerningPriority(all_lines, priority):
 
 def parseBroadcastAnalysis(filename, priority):
     """Parses a broadcast analysis file for the specified priority and returns (in that order) the time points, the
-    average number of reached people, and the minimum number of reached people.
+    minimum number of reached people, and the average number of reached people.
     """
     # Read broadcast analysis from file
     with open(filename) as analysis_file:
@@ -51,7 +51,7 @@ def parseBroadcastAnalysis(filename, priority):
         average.append(float(match.group(2)))
         minimum.append(int(match.group(3)))
 
-    return timePoints, average, minimum
+    return timePoints, minimum, average
 
 # Draws two functions over the same x values.
 # Labels are selected as appropriate for broadcast analysis.
@@ -76,7 +76,7 @@ def main(analysisFileName, graphicFileName):
     # Draw plots for all those priorities.
     fig = plt.figure(figsize=(16, 4))
     for idx, priority in enumerate(priorities):
-        timePoints, average, minimum = parseBroadcastAnalysis(analysisFileName, priority)
+        timePoints, minimum, average = parseBroadcastAnalysis(analysisFileName, priority)
         fig.add_subplot(1, 3, idx + 1)
         drawPlots(timePoints, minimum, average, priority)
 
-- 
GitLab