Skip to content
Snippets Groups Projects
Commit dd0c6123 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

fix typo

parent aa1f1910
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!167Sync Graph
Pipeline #51522 passed with warnings
......@@ -130,7 +130,7 @@ class SyncGraph():
# set an ID in _mark_missing if a node is in the uncheck list. Thus, setting the ID once
# prevents future attempts to set the ID of the same node.
# Also, setting an identifiable is only done when needed, i.e. there is no identifiable.
# Note, that when ever one node is changed, we check all dependend nodes (see usage of
# Note, that when ever one node is changed, we check all dependent nodes (see usage of
# `_get_nodes_whose_identity_relies_on`) whether something should be updated. Thus, we cannot
# miss a necessary update.
def __init__(self, entities: list[db.Entity], identifiableAdapter: IdentifiableAdapter):
......@@ -497,7 +497,7 @@ class SyncGraph():
- marks target as missing/existing if source was marked that way
- adds an identifiable if now possible (e.g. merging based on ID might allow create an
identifiable when none of the two nodes hand the sufficient properties on its own before)
- check whether dependend nodes can now get and identifiable (the merge might have set the
- check whether dependent nodes can now get and identifiable (the merge might have set the
ID such that dependen nodes can now create an identifiable)
"""
# sanity checks
......@@ -578,7 +578,7 @@ class SyncGraph():
# - mark existing
# - mark missing
# - merge
self._add_identifiables_to_dependend_nodes(target)
self._add_identifiables_to_dependent_nodes(target)
if self.get_equivalent(target) is not None:
self._merge_into(target, self.get_equivalent(target))
......@@ -617,7 +617,7 @@ class SyncGraph():
condition=lambda val: id(val) in se_lookup,
value=lambda val: se_lookup[id(val)])
def _add_identifiables_to_dependend_nodes(self, node):
def _add_identifiables_to_dependent_nodes(self, node):
""" For each dependent node, we check whether this allows to create an identifiable """
for other_node in self._get_nodes_whose_identity_relies_on(node):
if self._identifiable_is_needed(other_node):
......@@ -635,7 +635,7 @@ class SyncGraph():
# - mark existing
# - mark missing
# - merge
self._add_identifiables_to_dependend_nodes(node)
self._add_identifiables_to_dependent_nodes(node)
# For each dependent node, we set the ID to None (missing)
# (None is the default second argument of set_id_of_node.)
for other_node in self._get_nodes_whose_identity_relies_on(node):
......@@ -655,4 +655,4 @@ class SyncGraph():
# - mark existing
# - mark missing
# - merge
self._add_identifiables_to_dependend_nodes(node)
self._add_identifiables_to_dependent_nodes(node)
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