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
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 |
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
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): |