Fix bug preventing NPS scaling
This commit is contained in:
1 parent
5eca62e644
commit
62f84237b7
1 file changed
+3
-3
+3
-3
@@ -150,21 +150,21 @@ def getCutechessCommand(data, scalefactor):
|
|||||||
start, inc = map(float, timecontrol.split('/')[1].split('+'))
|
start, inc = map(float, timecontrol.split('/')[1].split('+'))
|
||||||
start = round(start * scalefactor, 2)
|
start = round(start * scalefactor, 2)
|
||||||
inc = round(inc * scalefactor, 2)
|
inc = round(inc * scalefactor, 2)
|
||||||
tc = moves + '/' + str(start) + '+' + str(inc)
|
timecontrol = moves + '/' + str(start) + '+' + str(inc)
|
||||||
|
|
||||||
# Parse X / Y time controls
|
# Parse X / Y time controls
|
||||||
elif '/' in timecontrol:
|
elif '/' in timecontrol:
|
||||||
moves = timecontrol.split('/')[0]
|
moves = timecontrol.split('/')[0]
|
||||||
start = float(timecontrol.split('/')[1])
|
start = float(timecontrol.split('/')[1])
|
||||||
start = round(start * scalefactor, 2)
|
start = round(start * scalefactor, 2)
|
||||||
tc = moves + '/' + str(start)
|
timecontrol = moves + '/' + str(start)
|
||||||
|
|
||||||
# Parse X + Z time controls
|
# Parse X + Z time controls
|
||||||
else:
|
else:
|
||||||
start, inc = map(float, timecontrol.split('+'))
|
start, inc = map(float, timecontrol.split('+'))
|
||||||
start = round(start * scalefactor, 2)
|
start = round(start * scalefactor, 2)
|
||||||
inc = round(inc * scalefactor, 2)
|
inc = round(inc * scalefactor, 2)
|
||||||
tc = str(start) + '+' + str(inc)
|
timecontrol = str(start) + '+' + str(inc)
|
||||||
|
|
||||||
# Find Threads / Options for the Dev Engine
|
# Find Threads / Options for the Dev Engine
|
||||||
tokens = data['test']['dev']['options'].split(' ')
|
tokens = data['test']['dev']['options'].split(' ')
|
||||||
|
|||||||
Reference in new issue
Block a user