GW2Raidar / gw2raidar

A log parsing website for Guild Wars 2 combat logs
http://www.gw2raidar.com
GNU General Public License v3.0
20 stars 14 forks source link

IndexError: single positional indexer is out of bounds #164

Closed amadanmath closed 7 years ago

amadanmath commented 7 years ago
Traceback (most recent call last):
  File "/var/www/apps/gw2raidar/raidar/management/commands/process_uploads.py", line 193, in analyse_upload
    analyser = Analyser(evtc_encounter)
  File "/var/www/apps/gw2raidar/analyser/analyser.py", line 228, in __init__
    player_src_events, player_dst_events, boss_events, final_boss_events = self.preprocess_events(events)
  File "/var/www/apps/gw2raidar/analyser/analyser.py", line 179, in preprocess_events
    boss_skill_activations)
  File "/var/www/apps/gw2raidar/analyser/bosses.py", line 66, in find_end_time
    elif int(damage_gaps.time.iloc[-1]) >= current_time:
  File "/usr/local/lib/python3.5/dist-packages/pandas/core/indexing.py", line 1328, in __getitem__
    return self._getitem_axis(key, axis=0)
  File "/usr/local/lib/python3.5/dist-packages/pandas/core/indexing.py", line 1749, in _getitem_axis
    self._is_valid_integer(key, axis)
  File "/usr/local/lib/python3.5/dist-packages/pandas/core/indexing.py", line 1638, in _is_valid_integer
    raise IndexError("single positional indexer is out-of-bounds")
IndexError: single positional indexer is out-of-bounds

56863.evtc.zip (and many others)

immortius commented 7 years ago

I assume this is a log from the time of KC door instadeath glitch. The combat lasts 1 second. This apparently short enough that we don't have any damage or relevant gaps, which triggers an error. The whole log is pretty meh, but I fixed the code such that a lack of gaps won't cause an error.

merforga commented 7 years ago

Version 0.9.4 released on 2017-09-11 16:23:01