mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 09:59:10 +00:00
test
This commit is contained in:
parent
8d65590fd4
commit
7b81385f58
3
data analysis/data/SandstormCargoShipBalls.csv
Normal file
3
data analysis/data/SandstormCargoShipBalls.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,1.0
|
||||
0.0
|
|
3
data analysis/data/SandstormCargoShipHatches.csv
Normal file
3
data analysis/data/SandstormCargoShipHatches.csv
Normal file
@ -0,0 +1,3 @@
|
||||
1.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/SandstormLowerRocketBalls.csv
Normal file
3
data analysis/data/SandstormLowerRocketBalls.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/SandstormLowerRocketHatches.csv
Normal file
3
data analysis/data/SandstormLowerRocketHatches.csv
Normal file
@ -0,0 +1,3 @@
|
||||
1.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/SandstormUpperRocketBalls.csv
Normal file
3
data analysis/data/SandstormUpperRocketBalls.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/SandstormUpperRocketHatches.csv
Normal file
3
data analysis/data/SandstormUpperRocketHatches.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/TeleopCargoShipBalls.csv
Normal file
3
data analysis/data/TeleopCargoShipBalls.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,5.0
|
||||
0.0
|
|
3
data analysis/data/TeleopCargoShipHatches.csv
Normal file
3
data analysis/data/TeleopCargoShipHatches.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,1.0
|
||||
1.0
|
|
3
data analysis/data/TeleopLowerRocketBalls.csv
Normal file
3
data analysis/data/TeleopLowerRocketBalls.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,4.0
|
||||
0.0
|
|
3
data analysis/data/TeleopLowerRocketHatches.csv
Normal file
3
data analysis/data/TeleopLowerRocketHatches.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/TeleopUpperRocketBalls.csv
Normal file
3
data analysis/data/TeleopUpperRocketBalls.csv
Normal file
@ -0,0 +1,3 @@
|
||||
0.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/TeleopUpperRocketHatches.csv
Normal file
3
data analysis/data/TeleopUpperRocketHatches.csv
Normal file
@ -0,0 +1,3 @@
|
||||
13.0
|
||||
0.0,0.0
|
||||
0.0
|
|
3
data analysis/data/cargoBalls.csv
Normal file
3
data analysis/data/cargoBalls.csv
Normal file
@ -0,0 +1,3 @@
|
||||
10.0
|
||||
0.0,7.0
|
||||
7.0
|
|
3
data analysis/data/hatchPanels.csv
Normal file
3
data analysis/data/hatchPanels.csv
Normal file
@ -0,0 +1,3 @@
|
||||
1.0
|
||||
0.0,7.0
|
||||
0.0
|
|
3
data analysis/data/match.csv
Normal file
3
data analysis/data/match.csv
Normal file
@ -0,0 +1,3 @@
|
||||
match-23
|
||||
match-18,match-3
|
||||
match-18
|
|
3
data analysis/data/notes.csv
Normal file
3
data analysis/data/notes.csv
Normal file
@ -0,0 +1,3 @@
|
||||
yeeee
|
||||
,si papa
|
||||
nine
|
|
3
data analysis/data/observationType.csv
Normal file
3
data analysis/data/observationType.csv
Normal file
@ -0,0 +1,3 @@
|
||||
Quantitative
|
||||
Quantitative,Quantitative
|
||||
Quantitative
|
|
3
data analysis/data/teamDBRef.csv
Normal file
3
data analysis/data/teamDBRef.csv
Normal file
@ -0,0 +1,3 @@
|
||||
team-2022
|
||||
team-16,team-16
|
||||
team-2451
|
|
@ -220,6 +220,8 @@ def pulldata():
|
||||
with open("data/scores.csv", "w+", newline = '') as file:
|
||||
writer = csv.writer(file, delimiter = ',')
|
||||
writer.writerows(scores)
|
||||
|
||||
|
||||
|
||||
def service():
|
||||
|
||||
|
@ -24,10 +24,6 @@ for team in teams:
|
||||
data.append(db.collection('data').document('team-2022').collection("Central 2019").document(team.id).collection("matches").document(report.id).get().to_dict())
|
||||
full.append(data)
|
||||
|
||||
print(len(full))
|
||||
|
||||
print(full)
|
||||
|
||||
quant_keys = []
|
||||
|
||||
list_teams = ["2022", "16", "2451"]
|
||||
@ -54,9 +50,7 @@ for i in range(len(full)):
|
||||
|
||||
var[individual_keys[k]] = full[i][j].get(key).get(individual_keys[k])
|
||||
|
||||
out.append(var)
|
||||
|
||||
#print(len(out))
|
||||
out.append(var)
|
||||
|
||||
sorted_out = []
|
||||
|
||||
@ -94,5 +88,10 @@ for i in sorted_out:
|
||||
|
||||
big_out[j][team_index].append(i[j])
|
||||
|
||||
print(big_out)
|
||||
for i in range(len(big_out)):
|
||||
|
||||
with open('data/' + j_list[i] + '.csv', "w+", newline = '') as file:
|
||||
|
||||
writer = csv.writer(file, delimiter = ',')
|
||||
writer.writerows(big_out[i])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user