Created
December 4, 2016 15:16
-
-
Save stpierre/ee934a10d2a963b719a073fc2b23f45d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_ordered = [int(l) for l in open("gamedata/tf2_50k.dat").readlines()] | |
peaks = [] | |
in_peak = False | |
for point in data_ordered: | |
if point > 27395: | |
if in_peak: | |
peaks[-1] += 5 | |
else: | |
peaks.append(5) | |
in_peak = True | |
else: | |
in_peak = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment