Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Error during kickoff events #199

Open
dtracers opened this issue Oct 15, 2019 · 0 comments
Open

Key Error during kickoff events #199

dtracers opened this issue Oct 15, 2019 · 0 comments
Labels
parse error The replay fails to parse

Comments

@dtracers
Copy link
Member

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 85, in perform_full_analysis
    self.events_creator.create_events(game, proto_game, player_map, data_frame, kickoff_frames, first_touch_frames)
  File "/env/local/lib/python3.7/site-packages/carball/analysis/events/event_creator.py", line 35, in create_events
    self.calculate_kickoff_stats(game, proto_game, player_map, data_frame, kickoff_frames, first_touch_frames)
  File "/env/local/lib/python3.7/site-packages/carball/analysis/events/event_creator.py", line 43, in calculate_kickoff_stats
    kickoffs = BaseKickoff.get_kickoffs_from_game(game, proto_game, self.id_creator, player_map, data_frame, kickoff_frames, first_touch_frames)
  File "/env/local/lib/python3.7/site-packages/carball/analysis/events/kickoff_detection/kickoff_analysis.py", line 44, in get_kickoffs_from_game
    kickoff_player = BaseKickoff.get_player_stats(cur_kickoff, player, data_frame, frame, end_frame)
  File "/env/local/lib/python3.7/site-packages/carball/analysis/events/kickoff_detection/kickoff_analysis.py", line 76, in get_player_stats
    BaseKickoff.set_jumps(kickoff_player, player, data_frame, start_frame, end_frame)
  File "/env/local/lib/python3.7/site-packages/carball/analysis/events/kickoff_detection/kickoff_analysis.py", line 92, in set_jumps
    if jump_active_df[f] != jump_active_df[f-1] or double_jump_active_df[f] != double_jump_active_df[f-1]:
  File "/env/local/lib/python3.7/site-packages/pandas/core/series.py", line 1068, in __getitem__
    result = self.index.get_value(self, key)
  File "/env/local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 4730, in get_value
    return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None))
  File "pandas/_libs/index.pyx", line 80, in pandas._libs.index.IndexEngine.get_value
  File "pandas/_libs/index.pyx", line 88, in pandas._libs.index.IndexEngine.get_value
  File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
  File "pandas/_libs/hashtable_class_helper.pxi", line 992, in pandas._libs.hashtable.Int64HashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 998, in pandas._libs.hashtable.Int64HashTable.get_item
KeyError: 0

https://cdn.discordapp.com/attachments/493849514680254468/633731480782110720/key_error_kickoff_event.replay

@dtracers dtracers added the parse error The replay fails to parse label Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parse error The replay fails to parse
Projects
None yet
Development

No branches or pull requests

1 participant