Skip to content
Snippets Groups Projects
Verified Commit ea2dbb2b authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Added `existing_model` to general user documentation.

parent 1acca6c1
No related branches found
No related tags found
1 merge request!89ENH: JsonSchemaExporter accepts do_not_create parameter.
Pipeline #40103 passed
......@@ -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
......
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