From 62f84237b7d39a224a8088b7052ee1d7885824d8 Mon Sep 17 00:00:00 2001 From: AndyGrant Date: Wed, 13 Jun 2018 22:50:50 -0400 Subject: [PATCH] Fix bug preventing NPS scaling --- Client/OpenBench.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/OpenBench.py b/Client/OpenBench.py index 792e490..3d0d4b6 100644 --- a/Client/OpenBench.py +++ b/Client/OpenBench.py @@ -150,21 +150,21 @@ def getCutechessCommand(data, scalefactor): start, inc = map(float, timecontrol.split('/')[1].split('+')) start = round(start * scalefactor, 2) inc = round(inc * scalefactor, 2) - tc = moves + '/' + str(start) + '+' + str(inc) + timecontrol = moves + '/' + str(start) + '+' + str(inc) # Parse X / Y time controls elif '/' in timecontrol: moves = timecontrol.split('/')[0] start = float(timecontrol.split('/')[1]) start = round(start * scalefactor, 2) - tc = moves + '/' + str(start) + timecontrol = moves + '/' + str(start) # Parse X + Z time controls else: start, inc = map(float, timecontrol.split('+')) start = round(start * scalefactor, 2) inc = round(inc * scalefactor, 2) - tc = str(start) + '+' + str(inc) + timecontrol = str(start) + '+' + str(inc) # Find Threads / Options for the Dev Engine tokens = data['test']['dev']['options'].split(' ')