original_docstring: 
          creates a new output variable for the current node
          
docstring: creates a new output variable for the current node
docstring_tokens: creates a new output variable for the current node
code: def create_vw(self, name, **kwargs):
          """
          creates a new output variable for the current node
          """
          # we don't want to overwrite an existing value
          assert name not in self._state['current_variables'], name
          assert name not in self._state['original_variables'], name
          # FIXME have a defined name separator
          new_name = "%s:%s" % (self._name, name)
          # same metadata about the network
          kwargs["relative_network"] = self
          # create the variable
          variable = VariableWrapper(new_name, **kwargs)
          # save variable
          self._state['current_variables'][name] = variable
          self._state['original_variables'][name] = variable
          return variable
code_tokens: def create_vw ( self , name , ** kwargs ) : assert name not in self . _state [ 'current_variables' ] , name assert name not in self . _state [ 'original_variables' ] , name new_name = "%s:%s" % ( self . _name , name ) kwargs [ "relative_network" ] = self variable = VariableWrapper ( new_name , ** kwargs ) self . _state [ 'current_variables' ] [ name ] = variable self . _state [ 'original_variables' ] [ name ] = variable return variable
short_docstring: creates a new output variable for the current node
short_docstring_tokens: creates a new output variable for the current node
comment: """
          creates a new output variable for the current node
          """$SEP$# we don't want to overwrite an existing value$SEP$# FIXME have a defined name separator$SEP$# same metadata about the network$SEP$# create the variable$SEP$# save variable