Skip to content

Instantly share code, notes, and snippets.

@person4268
person4268 / averagesort.py
Created September 17, 2022 18:23
FRC Scouting Data Sorting
import csv
import sys
# Use with https://github.com/the-gearheads/ghScouting
# sys.argv[1]: Input csv name
# sys.argv[2]: Output csv name
# Amount of decimal places to round to
round_places = 2
@person4268
person4268 / convert.py
Last active October 18, 2021 23:33
@tweet2doom demo converter
import struct
import sys
buffer = open(sys.argv[1], "rb")
header = buffer.read(13)
header_fmt_string = "ccccccccccccc"
header = struct.unpack(header_fmt_string, header)
def read_header(pos):