[bugfixes] some more bugfixes

This commit is contained in:
2021-07-16 10:15:40 +02:00
parent cc1139d2ca
commit 320cb42390
4 changed files with 18 additions and 10 deletions
+1
View File
@@ -1315,6 +1315,7 @@ def get_quality_class(uncertainty, weight_classes):
:return: quality of pick (0-4)
:rtype: int
"""
if not uncertainty: return max(weight_classes)
try:
# create generator expression containing all indices of values in weight classes that are >= than uncertainty.
# call next on it once to receive first value