fix some types

This commit is contained in:
2021-06-07 18:25:00 +02:00
parent 25ea0e03b5
commit 7f8af681dd

View File

@@ -223,16 +223,16 @@ def balanceTool():
cur += option[i].prio[i%5] cur += option[i].prio[i%5]
if theoMin/cur > threshold: if theoMin/cur > threshold:
alternateOptionsAboveThreshold += [option] alternateOptionsAboveThreshold.append(list(option))
if cur < best: if cur < best:
best = cur best = cur
bestOption = option bestOption = list(option)
alternateOptions = [] alternateOptions = []
alternateOptions += [option] alternateOptions.append(list(option))
print("Option Found Quality: {}%".format(str(int(theoMin/cur*100)))) print("Option Found Quality: {}%".format(str(int(theoMin/cur*100))))
elif cur == best: elif cur == best:
alternateOptions += [option] alternateOptions.append(list(option))
alternateOptions += alternateOptionsAboveThreshold alternateOptions += alternateOptionsAboveThreshold
retDict = { "left" : {}, "right" : {} } retDict = { "left" : {}, "right" : {} }
@@ -274,7 +274,6 @@ def balanceTool():
currDiff = diff; currDiff = diff;
print("Option found rating mu-diff: {}".format(diff)) print("Option found rating mu-diff: {}".format(diff))
bestOptionWithRating = o bestOptionWithRating = o
best =
for i in range(5): for i in range(5):
retDict["left"].update( { positions[i] : bestOptionWithRating[i].name }) retDict["left"].update( { positions[i] : bestOptionWithRating[i].name })