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
ea2dbb2b
Verified
Commit
ea2dbb2b
authored
1 year ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Added `existing_model` to general user documentation.
parent
1acca6c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!89
ENH: JsonSchemaExporter accepts do_not_create parameter.
Pipeline
#40103
passed
1 year ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doc/yaml_interface.rst
+8
-1
8 additions, 1 deletion
src/doc/yaml_interface.rst
with
8 additions
and
1 deletion
src/doc/yaml_interface.rst
+
8
−
1
View file @
ea2dbb2b
...
...
@@ -125,7 +125,14 @@ You can use the yaml parser directly in python as follows:
This creates a DataModel object containing all entities defined in the yaml file.
You can then use the functions from caosadvancedtools.models.data_model.DataModel to synchronize
If the parsed data model shall be appended to a pre-exsting data model, the optional
``extisting_model`` can be used:
.. code-block:: python
new_model = parser.parse_model_from_yaml("model.yml", existing_model=old_model)
You can now use the functions from ``DataModel`` to synchronize
the model with a CaosDB instance, e.g.:
.. code-block:: python
...
...
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