From 1d247b191154b93629d0b624607beebf2387fc46 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 15 Jun 2020 19:09:16 +0200 Subject: [PATCH] fix sigma being reset every round --- python/backends/trueskillWrapper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/backends/trueskillWrapper.py b/python/backends/trueskillWrapper.py index fcd3fb5..1bc9291 100644 --- a/python/backends/trueskillWrapper.py +++ b/python/backends/trueskillWrapper.py @@ -68,10 +68,10 @@ def evaluateRound(r): ##################################################### def newRating(mu=None, sigma=None): - if mu: - return Rating(mu=mu, sigma=env.sigma) - elif mu and sigma: + if mu and sigma: return Rating(mu=mu, sigma=sigma) + elif mu: + return Rating(mu=mu, sigma=env.sigma) else: return env.create_rating()