diff --git a/data analysis/data/SandstormCargoShipBalls.csv b/data analysis/data/SandstormCargoShipBalls.csv new file mode 100644 index 00000000..45ad1826 --- /dev/null +++ b/data analysis/data/SandstormCargoShipBalls.csv @@ -0,0 +1,3 @@ +0.0 +0.0,1.0 +0.0 diff --git a/data analysis/data/SandstormCargoShipHatches.csv b/data analysis/data/SandstormCargoShipHatches.csv new file mode 100644 index 00000000..eeac11fb --- /dev/null +++ b/data analysis/data/SandstormCargoShipHatches.csv @@ -0,0 +1,3 @@ +1.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/SandstormLowerRocketBalls.csv b/data analysis/data/SandstormLowerRocketBalls.csv new file mode 100644 index 00000000..f738a146 --- /dev/null +++ b/data analysis/data/SandstormLowerRocketBalls.csv @@ -0,0 +1,3 @@ +0.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/SandstormLowerRocketHatches.csv b/data analysis/data/SandstormLowerRocketHatches.csv new file mode 100644 index 00000000..eeac11fb --- /dev/null +++ b/data analysis/data/SandstormLowerRocketHatches.csv @@ -0,0 +1,3 @@ +1.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/SandstormUpperRocketBalls.csv b/data analysis/data/SandstormUpperRocketBalls.csv new file mode 100644 index 00000000..f738a146 --- /dev/null +++ b/data analysis/data/SandstormUpperRocketBalls.csv @@ -0,0 +1,3 @@ +0.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/SandstormUpperRocketHatches.csv b/data analysis/data/SandstormUpperRocketHatches.csv new file mode 100644 index 00000000..f738a146 --- /dev/null +++ b/data analysis/data/SandstormUpperRocketHatches.csv @@ -0,0 +1,3 @@ +0.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/TeleopCargoShipBalls.csv b/data analysis/data/TeleopCargoShipBalls.csv new file mode 100644 index 00000000..c9c11728 --- /dev/null +++ b/data analysis/data/TeleopCargoShipBalls.csv @@ -0,0 +1,3 @@ +0.0 +0.0,5.0 +0.0 diff --git a/data analysis/data/TeleopCargoShipHatches.csv b/data analysis/data/TeleopCargoShipHatches.csv new file mode 100644 index 00000000..1d8e9288 --- /dev/null +++ b/data analysis/data/TeleopCargoShipHatches.csv @@ -0,0 +1,3 @@ +0.0 +0.0,1.0 +1.0 diff --git a/data analysis/data/TeleopLowerRocketBalls.csv b/data analysis/data/TeleopLowerRocketBalls.csv new file mode 100644 index 00000000..119e509d --- /dev/null +++ b/data analysis/data/TeleopLowerRocketBalls.csv @@ -0,0 +1,3 @@ +0.0 +0.0,4.0 +0.0 diff --git a/data analysis/data/TeleopLowerRocketHatches.csv b/data analysis/data/TeleopLowerRocketHatches.csv new file mode 100644 index 00000000..f738a146 --- /dev/null +++ b/data analysis/data/TeleopLowerRocketHatches.csv @@ -0,0 +1,3 @@ +0.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/TeleopUpperRocketBalls.csv b/data analysis/data/TeleopUpperRocketBalls.csv new file mode 100644 index 00000000..f738a146 --- /dev/null +++ b/data analysis/data/TeleopUpperRocketBalls.csv @@ -0,0 +1,3 @@ +0.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/TeleopUpperRocketHatches.csv b/data analysis/data/TeleopUpperRocketHatches.csv new file mode 100644 index 00000000..eb0a027a --- /dev/null +++ b/data analysis/data/TeleopUpperRocketHatches.csv @@ -0,0 +1,3 @@ +13.0 +0.0,0.0 +0.0 diff --git a/data analysis/data/cargoBalls.csv b/data analysis/data/cargoBalls.csv new file mode 100644 index 00000000..91ae8f89 --- /dev/null +++ b/data analysis/data/cargoBalls.csv @@ -0,0 +1,3 @@ +10.0 +0.0,7.0 +7.0 diff --git a/data analysis/data/hatchPanels.csv b/data analysis/data/hatchPanels.csv new file mode 100644 index 00000000..9a0744d6 --- /dev/null +++ b/data analysis/data/hatchPanels.csv @@ -0,0 +1,3 @@ +1.0 +0.0,7.0 +0.0 diff --git a/data analysis/data/match.csv b/data analysis/data/match.csv new file mode 100644 index 00000000..0c4f3d44 --- /dev/null +++ b/data analysis/data/match.csv @@ -0,0 +1,3 @@ +match-23 +match-18,match-3 +match-18 diff --git a/data analysis/data/notes.csv b/data analysis/data/notes.csv new file mode 100644 index 00000000..026e047b --- /dev/null +++ b/data analysis/data/notes.csv @@ -0,0 +1,3 @@ +yeeee +,si papa +nine diff --git a/data analysis/data/observationType.csv b/data analysis/data/observationType.csv new file mode 100644 index 00000000..8ea07c8b --- /dev/null +++ b/data analysis/data/observationType.csv @@ -0,0 +1,3 @@ +Quantitative +Quantitative,Quantitative +Quantitative diff --git a/data analysis/data/teamDBRef.csv b/data analysis/data/teamDBRef.csv new file mode 100644 index 00000000..98771ec5 --- /dev/null +++ b/data analysis/data/teamDBRef.csv @@ -0,0 +1,3 @@ +team-2022 +team-16,team-16 +team-2451 diff --git a/data analysis/superscript.py b/data analysis/superscript.py index 3a6ae1fe..00edf339 100644 --- a/data analysis/superscript.py +++ b/data analysis/superscript.py @@ -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(): diff --git a/data analysis/test.py b/data analysis/test.py index 4a4e9356..79e7ee46 100644 --- a/data analysis/test.py +++ b/data analysis/test.py @@ -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])