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

DOC: added docstring for function compare entities

parent e544bd65
No related branches found
No related tags found
2 merge requests!36RELEASE: 0.6.1,!35F fix compare entities branch2
......@@ -561,7 +561,23 @@ def getCommitIn(folder):
COMPARED = ["name", "role", "datatype", "description", "importance"]
def compare_entities(old_entity, new_entity):
def compare_entities(old_entity: Entity, new_entity: Entity):
"""
Compare two entites.
Return a tuple of dictionaries, the first index belongs to additional information for old
entity, the second index belongs to additional information for new entity.
Additional information means in detail:
- Additional parents (a list under key "parents")
- Information about properties:
- Each property lists either an additional property or a property with a changed:
- ... datatype
- ... importance or
- ... value (not implemented yet)
In case of changed information the value listed under the respective key shows the
value that is stored in the respective entity.
"""
olddiff = {"properties": {}, "parents": []}
newdiff = {"properties": {}, "parents": []}
......
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