[refactor] rewrote/simplified getQualitiesfromxml code, used function already implemented in phases.py
This commit is contained in:
@@ -1320,7 +1320,7 @@ def get_quality_class(uncertainty, weight_classes):
|
||||
:return: quality of pick (0-4)
|
||||
:rtype: int
|
||||
"""
|
||||
if not uncertainty: return max(weight_classes)
|
||||
if not uncertainty: return len(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
|
||||
|
||||
Reference in New Issue
Block a user