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

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

Open
Gurey opened this issue Jun 2, 2020 · 0 comments
Open

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

Gurey opened this issue Jun 2, 2020 · 0 comments

Comments

@Gurey
Copy link

Gurey commented Jun 2, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant