diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-21 19:36:50 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-21 19:36:50 +0200 |
| commit | 36aac364aa7438066769c685c3792a0b317e0b23 (patch) | |
| tree | 28d01e3ea6a13f237caf941db67969b9bc3581f7 | |
| parent | 394245036b959269d1128a3e7edf045e664382b1 (diff) | |
| download | analyzer-36aac364aa7438066769c685c3792a0b317e0b23.tar.gz analyzer-36aac364aa7438066769c685c3792a0b317e0b23.zip | |
move unknown player sigma into env var
| -rw-r--r-- | worker.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -25,6 +25,7 @@ DOCRUNCHMATCH = os.environ.get("DOCRUNCHMATCH") == "true" CRUNCH_PLAYER_QUEUE = os.environ.get("CRUNCH_PLAYER_QUEUE") or "crunch_player" DOTELESUCKMATCH = os.environ.get("DOTELESUCKMATCH") == "true" TELESUCK_QUEUE = os.environ.get("TELESUCK_QUEUE") or "telesuck" +UNKNOWN_PLAYER_SIGMA = os.environ.get("UNKNOWN_PLAYER_SIGMA") or 500 # mapping from Tier (-1 - 30) to average skill tier points vst_points = { @@ -212,7 +213,7 @@ def process(): for participant in roster.participants: player = participant.player[0] # no data -> approximate ts by VST - sigma = player.trueskill_sigma or 500 + sigma = player.trueskill_sigma or UNKNOWN_PLAYER_SIGMA mu = player.trueskill_mu or vst_points[participant.skill_tier] + sigma # store pre match values |
