From dd0c6123c980a3e0def336ff27c2863867bc4c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Wed, 29 May 2024 13:14:03 +0200 Subject: [PATCH] fix typo --- src/caoscrawler/sync_graph.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/caoscrawler/sync_graph.py b/src/caoscrawler/sync_graph.py index a7c27e51..1ff8dc3e 100644 --- a/src/caoscrawler/sync_graph.py +++ b/src/caoscrawler/sync_graph.py @@ -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) -- GitLab