(refresh_cache: bool = False, threshold_round: int = 15)
| 68 | |
| 69 | |
| 70 | def main(refresh_cache: bool = False, threshold_round: int = 15) -> None: |
| 71 | data = [] |
| 72 | with open(DATA_CACHE) as f: |
| 73 | print("loading data from", DATA_CACHE) |
| 74 | data = [json.loads(line) for line in f] |
| 75 | print(f"Found {len(data)} player-tournament entries in cache.") |
| 76 | |
| 77 | df = analyze_total_throwaway_per_player(data, threshold_round=threshold_round) |
| 78 | print("\n=== Throwaway totals per player (raw, no filtering) ===") |
| 79 | print(df.head()) |
| 80 | |
| 81 | plot_throwaway_cdf(df) |
| 82 | |
| 83 | |
| 84 | if __name__ == "__main__": |
no test coverage detected