From 0a8f6f8a39de0d1c49ec5b07b2f2c76d772b63c4 Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 14 Aug 2017 11:43:09 +0200 Subject: [PATCH] [bugfix] regard uncertainty == None --- pylot/core/pick/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 947520e4..1b796d7d 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -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 \