parameters: (self, port_index, data)
docstring: Connect a port to a data location.
  
             This may be called regardless of whether the plugin is activated,
             activation and deactivation does not destroy port connections.
docstring_summary: Connect a port to a data location.
docstring_tokens: Connect a port to a data location .
function: def connect_port(self, port_index, data):
          """Connect a port to a data location.
  
             This may be called regardless of whether the plugin is activated,
             activation and deactivation does not destroy port connections.
          """
          import numpy
          if data is None:
              self.get_descriptor().connect_port(
                  self.get_handle(),
                  port_index,
                  data)
          elif type(data) == numpy.ndarray:
              self.get_descriptor().connect_port(
                  self.get_handle(),
                  port_index,
                  data.ctypes.data_as(POINTER(c_float)))
          else:
              raise Exception("Unsupported data type")
function_tokens: def connect_port ( self , port_index , data ) : import numpy if data is None : self . get_descriptor ( ) . connect_port ( self . get_handle ( ) , port_index , data ) elif type ( data ) == numpy . ndarray : self . get_descriptor ( ) . connect_port ( self . get_handle ( ) , port_index , data . ctypes . data_as ( POINTER ( c_float ) ) ) else : raise Exception ( "Unsupported data type" )