Commit 877b35cc authored by Britta Heymann's avatar Britta Heymann
Browse files

Change order of function return

To fit with next function call.
parent d66acc38
Pipeline #17089 passed with stages
in 4 minutes and 37 seconds
......@@ -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)
......
Supports Markdown
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