Disentangle one reference to slipnet.
This commit is contained in:
@ -77,10 +77,6 @@ def __getDescriptors(bondFacet, source, destination):
|
|||||||
return sourceDescriptor, destinationDescriptor
|
return sourceDescriptor, destinationDescriptor
|
||||||
|
|
||||||
|
|
||||||
def __allOppositeMappings(mappings):
|
|
||||||
return all(m.label == slipnet.opposite for m in mappings)
|
|
||||||
|
|
||||||
|
|
||||||
def __structureVsStructure(structure1, weight1, structure2, weight2):
|
def __structureVsStructure(structure1, weight1, structure2, weight2):
|
||||||
structure1.updateStrength()
|
structure1.updateStrength()
|
||||||
structure2.updateStrength()
|
structure2.updateStrength()
|
||||||
@ -837,7 +833,7 @@ def bottom_up_correspondence_scout(coderack, codelet):
|
|||||||
if (objectFromInitial.spansString() and
|
if (objectFromInitial.spansString() and
|
||||||
objectFromTarget.spansString() and
|
objectFromTarget.spansString() and
|
||||||
slipnet.directionCategory in initialDescriptionTypes
|
slipnet.directionCategory in initialDescriptionTypes
|
||||||
and __allOppositeMappings(formulas.oppositeMappings)
|
and all(m.label == slipnet.opposite for m in opposites) # unreached?
|
||||||
and slipnet.opposite.activation != 100.0):
|
and slipnet.opposite.activation != 100.0):
|
||||||
objectFromTarget = objectFromTarget.flippedVersion()
|
objectFromTarget = objectFromTarget.flippedVersion()
|
||||||
conceptMappings = formulas.getMappings(
|
conceptMappings = formulas.getMappings(
|
||||||
@ -888,7 +884,7 @@ def important_object_correspondence_scout(coderack, codelet):
|
|||||||
if (objectFromInitial.spansString()
|
if (objectFromInitial.spansString()
|
||||||
and objectFromTarget.spansString()
|
and objectFromTarget.spansString()
|
||||||
and slipnet.directionCategory in initialDescriptionTypes
|
and slipnet.directionCategory in initialDescriptionTypes
|
||||||
and __allOppositeMappings(formulas.oppositeMappings)
|
and all(m.label == slipnet.opposite for m in opposites) # unreached?
|
||||||
and slipnet.opposite.activation != 100.0):
|
and slipnet.opposite.activation != 100.0):
|
||||||
objectFromTarget = objectFromTarget.flippedVersion()
|
objectFromTarget = objectFromTarget.flippedVersion()
|
||||||
conceptMappings = formulas.getMappings(
|
conceptMappings = formulas.getMappings(
|
||||||
|
|||||||
Reference in New Issue
Block a user