From 951b52d04a271ecc418c44f03598be550bd7db5f Mon Sep 17 00:00:00 2001 From: ljcornel Date: Tue, 29 Oct 2024 15:44:16 +0100 Subject: [PATCH] Fix anomaly wrapper configuration --- geti_sdk/deployment/deployed_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geti_sdk/deployment/deployed_model.py b/geti_sdk/deployment/deployed_model.py index 94d901dd..53e489b2 100644 --- a/geti_sdk/deployment/deployed_model.py +++ b/geti_sdk/deployment/deployed_model.py @@ -785,9 +785,9 @@ def get_model_config(self) -> Dict[str, Any]: continue except ValueError: pass - if value in ["false", "False", "FALSE"]: + if isinstance(value, str) and value.lower() in ["false", "no"]: value = False - elif value in ["true", "True", "TRUE"]: + elif isinstance(value, str) and value.lower() in ["true", "yes"]: value = True config[child.tag] = value return config