Demagic all the WorkspaceStructure children who aren't WorkspaceObjects. NFC.

This commit is contained in:
Arthur O'Dwyer
2017-04-17 20:03:48 -07:00
parent b16666e4d7
commit 22b15c3866
7 changed files with 12 additions and 17 deletions

View File

@ -351,7 +351,7 @@ def replacement_finder(ctx, codelet):
else:
relation = None
logging.info('no relation found')
letterOfInitialString.replacement = Replacement(
letterOfInitialString.replacement = Replacement(ctx,
letterOfInitialString, letterOfModifiedString, relation)
if relation != slipnet.sameness:
letterOfInitialString.changed = True
@ -777,7 +777,7 @@ def group_builder(ctx, codelet):
destination = object1
category = group.groupCategory.getRelatedNode(slipnet.bondCategory)
facet = group.facet
newBond = Bond(source, destination, category, facet,
newBond = Bond(ctx, source, destination, category, facet,
source.getDescriptor(facet),
destination.getDescriptor(facet))
newBond.buildBond()