You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/user_code/main.py", line 105, in parse_replay
game_manager, proto_location, pandas_location = decompile_replay(replay_location)
File "/user_code/main.py", line 41, in decompile_replay
proto_manager = analyze_replay_file(filename, rattletrap_path=dir_path)
File "/env/local/lib/python3.7/site-packages/carball/decompile_replays.py", line 53, in analyze_replay_file
analysis.create_analysis()
File "/env/local/lib/python3.7/site-packages/carball/analysis/analysis_manager.py", line 61, in create_analysis
data_frame, kickoff_frames, first_touch_frames)
File "/env/local/lib/python3.7/site-packages/carball/analysis/analysis_manager.py", line 87, in perform_full_analysis
self.get_stats(game, proto_game, player_map, data_frame)
File "/env/local/lib/python3.7/site-packages/carball/analysis/analysis_manager.py", line 158, in get_stats
self.stats_manager.get_stats(game, proto_game, player_map, data_frame[goal_frames])
File "/env/local/lib/python3.7/site-packages/carball/analysis/stats/stats_manager.py", line 35, in get_stats
self.calculate_player_stats(game, proto_game, player_map, data_frame)
File "/env/local/lib/python3.7/site-packages/carball/analysis/stats/stats_manager.py", line 50, in calculate_player_stats
stat_function.calculate_player_stat(stats_proto, game, proto_game, player_map, data_frame)
File "/env/local/lib/python3.7/site-packages/carball/analysis/stats/possession/per_possession.py", line 74, in calculate_player_stat
self.initialize(proto_game, player_map, data_frame)
File "/env/local/lib/python3.7/site-packages/carball/analysis/stats/possession/per_possession.py", line 41, in initialize
self.add_possession_durations(possessions, data_frame)
File "/env/local/lib/python3.7/site-packages/carball/analysis/stats/possession/per_possession.py", line 171, in add_possession_durations
possession_times = data_frame.loc[[possession_start_frame, possession_end_frame], ('game', 'time')].values
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 1418, in __getitem__
return self._getitem_tuple(key)
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 805, in _getitem_tuple
return self._getitem_lowerdim(tup)
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 910, in _getitem_lowerdim
return self._getitem_nested_tuple(tup)
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 993, in _getitem_nested_tuple
obj = getattr(obj, self.name)._getitem_axis(key, axis=axis)
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 1839, in _getitem_axis
return self._getitem_iterable(key, axis=axis)
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 1133, in _getitem_iterable
keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False)
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 1092, in _get_listlike_indexer
keyarr, indexer, o._get_axis_number(axis), raise_missing=raise_missing
File "/env/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 1177, in _validate_read_indexer
key=key, axis=self.obj._get_axis_name(axis)
KeyError: "None of [Int64Index([4, 269], dtype='int64')] are in the [index]"
https://cdn.discordapp.com/attachments/493849514680254468/633507263826624552/possession_key_error.replay
The text was updated successfully, but these errors were encountered: