feat: Initial commit of Clutch-IQ project
This commit is contained in:
19
tools/debug/debug_fields.py
Normal file
19
tools/debug/debug_fields.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from demoparser2 import DemoParser
|
||||
import os
|
||||
|
||||
demo_path = os.path.join(os.getcwd(), "data", "demos", "furia-vs-falcons-m1-inferno.dem")
|
||||
parser = DemoParser(demo_path)
|
||||
|
||||
potential_fields = ["account", "m_iAccount", "balance", "money", "cash", "score", "mvps"]
|
||||
|
||||
print(f"Checking fields in {demo_path}...")
|
||||
|
||||
for field in potential_fields:
|
||||
try:
|
||||
df = parser.parse_ticks([field], ticks=[1000]) # Check tick 1000
|
||||
if not df.empty and field in df.columns:
|
||||
print(f"[SUCCESS] Found field: {field}")
|
||||
else:
|
||||
print(f"[FAILED] Field {field} returned empty or missing column")
|
||||
except Exception as e:
|
||||
print(f"[ERROR] Field {field} failed: {e}")
|
||||
Reference in New Issue
Block a user