[bugfix] regard uncertainty == None
This commit is contained in:
parent
e0077524f4
commit
0a8f6f8a39
@ -1101,6 +1101,9 @@ def getQualityfromUncertainty(uncertainty, Errors):
|
||||
# set initial quality to 4 (worst) and change only if one condition is hit
|
||||
quality = 4
|
||||
|
||||
if uncertainty == None or uncertainty == 'None':
|
||||
return quality
|
||||
|
||||
if uncertainty <= Errors[0]:
|
||||
quality = 0
|
||||
elif (uncertainty > Errors[0]) and \
|
||||
|
Loading…
Reference in New Issue
Block a user