From 0c25885d62026b47e2c6f7f6fd49d333b72d3e28 Mon Sep 17 00:00:00 2001
From: Alexander Schlemmer <a.schlemmer@indiscale.com>
Date: Mon, 18 Nov 2024 13:00:48 +0100
Subject: [PATCH] FIX(yaml-model-parser): removed data type check

---
 src/caosadvancedtools/models/parser.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/caosadvancedtools/models/parser.py b/src/caosadvancedtools/models/parser.py
index 27505329..fb8f75ab 100644
--- a/src/caosadvancedtools/models/parser.py
+++ b/src/caosadvancedtools/models/parser.py
@@ -352,14 +352,14 @@ debug : bool, optional
                     model_prop = self.model[prop.name]
                     # The information must be missing, we don't want to overwrite it accidentally:
                     if prop.datatype is not None and prop.datatype != model_prop.datatype:
-                        # breakpoint()
-                        raise RuntimeError("datatype must not be set, here. This is probably a bug.")
+                        continue
+                        # TODO: Data type overwrite is allowed here (because
+                        #       of lists), but this might change in the future.
+                        # raise RuntimeError("datatype must not be set, here. This is probably a bug.")
                     if prop.unit is not None and prop.unit != model_prop.unit:
-                        # continue
-                        raise RuntimeError("unit must not be set, here. This is probably a bug.")
+                        continue
                     if prop.description is not None and prop.description != model_prop.description:
-                        # continue
-                        raise RuntimeError("description must not be set, here. This is probably a bug.")
+                        continue
 
                     # If this property has a more detailed definition in the model,
                     # copy over the information:
-- 
GitLab