Fix bug preventing NPS scaling

This commit is contained in:
AndyGrant committed 2018-06-13 22:50:50 -04:00
1 parent 5eca62e644
commit 62f84237b7
1 file changed
+3 -3
+3 -3
View File
@@ -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(' ')