neuroarch.na.NeuroArch.add_Port

NeuroArch.add_Port(neuron, lpu, selector=None)[source]

Create a Port node.

Parameters:
  • neuron (models.NeuronModel or str) – An Neuron object or its rid (str) that the port connect to.

  • lpu (neuronarch.models.LPU) – The LPU that owns the port.

  • selector (str (optional)) – The selector of the port. See neurokernel.plsel.Selector.

Returns:

The created Port object.

Return type:

models.Port