Skip to content

[determine_fifty_fifty_winner] IndexError: list index out of range #246

@Gurey

Description

@Gurey

Hi i'm getting this error on one of my replays :)

if i do the analysis without calculate_intensive_events set to True it works great.

I'm providing the replay if you want to confirm this bug.
https://drive.google.com/file/d/1IdSAdcWspSqgty4RRkG9mtM8bgtOuCXj/view?usp=sharing

Error: Replay name not found
Dropping these columns[('game', 'is_overtime')]
Goal is not shot: frame 1784 by Faded \u30c4
Goal is not shot: frame 5317 by Bambuh
STRAIGHT TIME 2.0720905000000016
SUM TIME0.0
STRAIGHT TIME 2.1446359999999913
SUM TIME0.0
STRAIGHT TIME 2.0767960000000016
SUM TIME0.0
STRAIGHT TIME 2.1146300000000053
SUM TIME0.0
The player never hit the ball during the "carry"
Traceback (most recent call last):
  File "C:\Users\Gurey\AppData\Local\Temp\pythonShellFile3747938209.py", line 17, in <module>
    analysis.create_analysis(calculate_intensive_events=True)
  File "C:\Users\Gurey\AppData\Roaming\electron-ts-react\python\Lib\site-packages\carball\analysis\analysis_manager.py", line 72, in create_analysis
    calculate_intensive_events=calculate_intensive_events)
  File "C:\Users\Gurey\AppData\Roaming\electron-ts-react\python\Lib\site-packages\carball\analysis\analysis_manager.py", line 103, in perform_full_analysis
    calculate_intensive_events=calculate_intensive_events)
  File "C:\Users\Gurey\AppData\Roaming\electron-ts-react\python\Lib\site-packages\carball\analysis\events\event_creator.py", line 47, in create_events
    self.calculate_fifty_fifty(game, proto_game, data_frame)
  File "C:\Users\Gurey\AppData\Roaming\electron-ts-react\python\Lib\site-packages\carball\analysis\events\event_creator.py", line 53, in calculate_fifty_fifty
    fiftyAnalysis.calculate_fifty_fifty_stats()
  File "C:\Users\Gurey\AppData\Roaming\electron-ts-react\python\Lib\site-packages\carball\analysis\events\fifty_fifty\fifty_analysis.py", line 143, in calculate_fifty_fifty_stats
    self.determine_fifty_fifty_winner(fifty, i+1)
  File "C:\Users\Gurey\AppData\Roaming\electron-ts-react\python\Lib\site-packages\carball\analysis\events\fifty_fifty\fifty_analysis.py", line 27, in determine_fifty_fifty_winner
    hit = hits[next_hit_index]
  File "C:\Users\Gurey\AppData\Roaming\RL-Insight\python\lib\site-packages\google\protobuf\internal\containers.py", line 204, in __getitem__
    return self._values[key]
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions