[bugfix] no quality set if else was hit
This commit is contained in:
parent
c20ea78e52
commit
b585f571da
@ -1078,9 +1078,9 @@ def getQualityfromUncertainty(uncertainty, Errors):
|
||||
regarding adjusted time errors Errors.
|
||||
'''
|
||||
|
||||
if uncertainty == None or uncertainty == 'None':
|
||||
# set initial quality to 4 (worst) and change only if one condition is hit
|
||||
quality = 4
|
||||
else:
|
||||
|
||||
if uncertainty <= Errors[0]:
|
||||
quality = 0
|
||||
elif (uncertainty > Errors[0]) and \
|
||||
@ -1094,8 +1094,6 @@ def getQualityfromUncertainty(uncertainty, Errors):
|
||||
quality = 3
|
||||
elif uncertainty > Errors[3]:
|
||||
quality = 4
|
||||
else:
|
||||
pass
|
||||
|
||||
return quality
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user