Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Commits
0c25885d
Commit
0c25885d
authored
4 months ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
FIX(yaml-model-parser): removed data type check
parent
d75f6468
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!128
MNT: Added a warning when column metadata is not configured, and a better...
,
!115
add datatype, unit and description to properties that are part of Records
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosadvancedtools/models/parser.py
+6
-6
6 additions, 6 deletions
src/caosadvancedtools/models/parser.py
with
6 additions
and
6 deletions
src/caosadvancedtools/models/parser.py
+
6
−
6
View file @
0c25885d
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment