-
Notifications
You must be signed in to change notification settings - Fork 2
/
spreadsheet_code_generator.py
29 lines (26 loc) · 1.29 KB
/
spreadsheet_code_generator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
fields = ['teamNum','teamName','avgAutoScore', 'sdAutoScore','avgTeleOpScore',
'sdTeleOpScore','avgMatchScore','sdMatchScore',
'reachBaselinePercentage','avgAutoKpa', 'sdAutoKpa','avgTeleOpKpa', 'sdTeleOpKpa',
'avgAutoGears','sdAutoGears','autoGearAttemptSuccessPercent','autoGearPegLoc','leftPegPercent',
'rightPegPercent','centerPegPercent','totalLeftPegSuccess','totalRightPegSuccess',
'totalCenterPegSuccess','avgTeleOpGears', 'sdTeleOpGears','avgDroppedGears',
'avgHighGoals','sdHighGoals','avgLowGoals',
'sdLowGoals',
'avgHoppers','avgPointsPerCycle','sdPointsPerCycle','avgCycles',
'sdCycles',
'takeoffPercentage','takeoffAttemptPercentage','takeoffAttemptSuccessPercentage',
'pilotPlayPercentage',
'avgTeleOpKpaFuelFocus','avgTeleOpGearsGearFocus','fuelFocusPercent','gearFocusPercent','hasPickup','hasIntake','isActive','doNotPick',
'frequentRobotCommentStr','frequentPilotCommentStr',
'allComments']
header = 'String header = \"'
for field in fields:
header+= field+','
header+='\\n\";'
fileContents = 'fileContents += '
for field in fields:
fileContents+='report.'+field+'+COMMA+'
fileContents+='\'\\n\';'
print(header)
print('\n')
print(fileContents)