pnxenopoulos / awpy

Python library to parse, analyze and visualize Counter-Strike 2 data
http://www.awpycs.com
MIT License
383 stars 57 forks source link

NoneType object is not iterable with ESEA Demo #156

Closed ma1n closed 2 years ago

ma1n commented 2 years ago

ESEA Demo results in Stats Module broken

Demo in question: https://we.tl/t-mZ2r9WTgLk

image

pnxenopoulos commented 2 years ago

Do you have a link to the ESEA match? It seems like in the first round, ctSide and tSide have no players listed.

pnxenopoulos commented 2 years ago

Ah, I know what it is.

I haven't moved the following feature to be default yet. This parses things cleanly (I assume the demo is this https://play.esea.net/match/16897599).

p = DemoParser(...)
d = p.parse()
d = p.clean_rounds(remove_bad_scoring=True)

remove_bad_scoring gets rid of the offending round