Skip to content
Snippets Groups Projects
Commit 0c25885d authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX(yaml-model-parser): removed data type check

parent d75f6468
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!115add datatype, unit and description to properties that are part of Records
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment