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)
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)
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
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