From 623a488f48574643a37f93dc5ba64dfa53ff2093 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Sat, 10 Aug 2024 21:24:00 +0200 Subject: [PATCH] Update VariableClass.py --- utils/VariableClass.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/VariableClass.py b/utils/VariableClass.py index 05ecd07..4b369f0 100644 --- a/utils/VariableClass.py +++ b/utils/VariableClass.py @@ -71,12 +71,12 @@ def __init__(self): if os.getenv("MAX_NUMBER_OF_PREDICTIONS") is not None: self.MAX_NUMBER_OF_PREDICTIONS = int( os.getenv("MAX_NUMBER_OF_PREDICTIONS", "50")) - if os.getenv("MIN_DISTANCE") is not None: + if os.getenv("MIN_DISTANCE") is not None and os.getenv("MIN_DISTANCE") != "": self.MIN_DISTANCE = int(os.getenv("MIN_DISTANCE", "500")) - if os.getenv("MIN_STATIC_DISTANCE") is not None: + if os.getenv("MIN_STATIC_DISTANCE") is not None and os.getenv("MIN_STATIC_DISTANCE") != "": self.MIN_STATIC_DISTANCE = int( os.getenv("MIN_STATIC_DISTANCE", "100")) - if os.getenv("MIN_DETECTIONS") is not None: + if os.getenv("MIN_DETECTIONS") is not None and os.getenv("MIN_DETECTIONS") != "": self.MIN_DETECTIONS = int(os.getenv("MIN_DETECTIONS", "5")) ALLOWED_CLASSIFICATIONS_STR = os.getenv("ALLOWED_CLASSIFICATIONS")