From 756b5d67da5b5fbdf222d19a29b9d00bb402c429 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Tue, 29 May 2018 18:27:15 +0200 Subject: [PATCH] [bugfix] getQualityFromUncertainty giving worst quality for uncertainty values between two classes Now the quality classes are exclusive lower bound and inclusive upper bound. --- pylot/core/pick/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 3f5bcdcb..803524c3 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -1193,13 +1193,13 @@ def getQualityFromUncertainty(uncertainty, Errors): if uncertainty <= Errors[0]: quality = 0 elif (uncertainty > Errors[0]) and \ - (uncertainty < Errors[1]): + (uncertainty <= Errors[1]): quality = 1 elif (uncertainty > Errors[1]) and \ - (uncertainty < Errors[2]): + (uncertainty <= Errors[2]): quality = 2 elif (uncertainty > Errors[2]) and \ - (uncertainty < Errors[3]): + (uncertainty <= Errors[3]): quality = 3 elif uncertainty > Errors[3]: quality = 4