#NEWLINE# def get( self , name ) : #NEWLINE# #INDENT# 'Find a node by tool or node name including its node index.\n\n        We search here through the node, searching for a node whose name equals\n        the given name. The full name consists if of the tool name and the node\n        index if there is are more nodes with the same name. A node index is\n        typically assigned and used after pipeline expansion, which means you\n        might have to append the correct index to the node you are looking for.\n\n        This is necessary because multi-plexing of the pipeline can not always\n        guarantee unique nodes names. The nodes might get duplicated based on\n        the input of the pipeline. Therefor a unique node index is appended to\n        the node name. You can expect the pipeline nodes and their names using\n        the :meth:`nodes` method and iterate it. Printing, or calling ``str``\n        will resolve the current node name.\n\n        If you assign a job name to the node, this will overwrite the node\n        name and will be used instead, but note that the same indexing rules\n        apply and if graph contains more than one node with the same name, the\n        node index will be appended to the node/job name.\n\n        If the index is appended, the node name always has the form\n        "<name>.<index>".\n\n        For example, without any special assignment, the node name defaults to\n        the name of the tool. If there is only one node with that name,\n        no modifications are applied and the node index is ignored::\n\n            >>> p = Pipeline()\n            >>> p.run(\'bash\', cmd=\'ls\')\n            bash\n            >>> p.expand()\n            False\n            >>> assert p.get("bash") is not None\n\n        :param name: node name\n        :returns: node name\n        :raises LookupError: if no such node exists\n        ' #NEWLINE# for ( k , v ) in self . _nodes . iteritems ( ) : #NEWLINE# #INDENT# if ( v . name == name ) : #NEWLINE# #INDENT# return v #NEWLINE# #UNINDENT# #UNINDENT# raise LookupError ( ( 'Node with name %s not found' % name ) )