fix on moments
Browse files
nba_tracking_data_15_16.py
CHANGED
@@ -180,7 +180,11 @@ class NbaTracking(datasets.GeneratorBasedBuilder):
|
|
180 |
"quarter": moment[0],
|
181 |
"game_clock": moment[2],
|
182 |
"shot_clock": moment[3],
|
183 |
-
"ball_coordinates":
|
|
|
|
|
|
|
|
|
184 |
"player_coordinates": [
|
185 |
{
|
186 |
"teamid": i[0],
|
|
|
180 |
"quarter": moment[0],
|
181 |
"game_clock": moment[2],
|
182 |
"shot_clock": moment[3],
|
183 |
+
"ball_coordinates": {
|
184 |
+
"x": moment[5][0][2],
|
185 |
+
"y": moment[5][0][3],
|
186 |
+
"z": moment[5][0][4]
|
187 |
+
},
|
188 |
"player_coordinates": [
|
189 |
{
|
190 |
"teamid": i[0],
|