Пример #1
0
 def autoalign_nodespace(self, nodespace):
     """ Calls the autoalignment on the given nodespace """
     from micropsi_core.nodenet.node_alignment import align
     if nodespace in self.__nodenet.get_nodespace_uids():
         align(self.__nodenet, nodespace)
Пример #2
0
 def autoalign_entities(self, nodespace, entity_uids):
     """ Calls the autoalignment on the given entities in the given nodespace """
     from micropsi_core.nodenet.node_alignment import align
     if nodespace in self.__nodenet.get_nodespace_uids():
         align(self.__nodenet, nodespace, entity_uids)
Пример #3
0
def align_nodes(nodenet_uid, nodespace):
    """Perform auto-alignment of nodes in the current nodespace"""
    result = node_alignment.align(nodenets[nodenet_uid], nodespace)
    return result
Пример #4
0
def align_nodes(nodenet_uid, nodespace):
    """Perform auto-alignment of nodes in the current nodespace"""
    result = node_alignment.align(nodenets[nodenet_uid], nodespace)
    if result:
        nodenets[nodenet_uid].update_node_positions()
    return result