Skip to content

Instantly share code, notes, and snippets.

@stpierre
Created December 4, 2016 15:16
Show Gist options
  • Save stpierre/ee934a10d2a963b719a073fc2b23f45d to your computer and use it in GitHub Desktop.
Save stpierre/ee934a10d2a963b719a073fc2b23f45d to your computer and use it in GitHub Desktop.
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