SpiNNakerManchester / sPyNNaker8

The PyNN 0.8 interface to sPyNNaker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect label used for multiple projections between two populations

ej159 opened this issue · comments

commented

When instantiating a second projection between two populations regardless of the label given for the second projection, the first projection's label is repeated.

Example script:

import pyNN.spiNNaker as sim

sim.setup()

proj_list = []

A = sim.Population(100, sim.IF_curr_exp, label ="pop_A")
B = sim.Population(100, sim.IF_curr_exp, label="pop_B")

A_to_B_1 = sim.Projection(A, B, sim.OneToOneConnector(), receptor_type= "excitatory",
                           label="A_to_B_1_label")
proj_list.append(A_to_B_1)

A_to_B_2 = sim.Projection(A, B, sim.OneToOneConnector(), receptor_type= "inhibitory",
                           label="A_to_B_2_label")
proj_list.append(A_to_B_2)

print("projection_list: {}".format(proj_list)) 
# This should give "projection_list: [projection A_to_B_1_label, projection A_to_B_2_label]"

print(proj_list[0].label)
print(proj_list[1].label) # This should give "A_to_B_2_label"

Thanks @ej159 - in fact I have a similar issue (see SpiNNakerManchester/sPyNNaker#653) that's more problematic. I'll try to solve the label issue at the same time.