Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sim.StructuralMechanismStatic vs sim.reset #1279

Open
Christian-B opened this issue Jan 25, 2023 · 1 comment
Open

sim.StructuralMechanismStatic vs sim.reset #1279

Christian-B opened this issue Jan 25, 2023 · 1 comment
Labels
Milestone

Comments

@Christian-B
Copy link
Member

Christian-B commented Jan 25, 2023

to replicate:

import pyNN.spiNNaker as sim
sim.setup(1.0)
stim = sim.Population(9, sim.SpikeSourceArray(range(10)), label="stim")

pop = sim.Population(9, sim.IF_curr_exp(), label="pop_1")

sim.Projection(
stim, pop, sim.AllToAllConnector(),
sim.StructuralMechanismStatic(
partner_selection=sim.RandomSelection(),
formation=sim.DistanceDependentFormation([3, 3], 0.0),
elimination=sim.RandomByWeightElimination(4.0, 1.0, 1.0),
f_rew=1000, initial_weight=4.0, initial_delay=3.0,
s_max=9, seed=0, weight=0.0, delay=1.0))

sim.run(10)
sim.reset()
sim.run(10)

Error
spinn_front_end_common/interface/interface_functions/graph_data_specification_writer.py", line 132, in __generate_data_spec_for_vertices
vertex.generate_data_specification(spec, pl)
spynnaker/pyNN/models/neuron/population_synapses_machine_vertex_lead.py", line 105, in generate_data_specification
self._write_synapse_data_spec(
spynnaker/pyNN/models/neuron/population_machine_synapses.py", line 160, in _write_synapse_data_spec
synapse_dynamics.write_structural_parameters(
spynnaker/pyNN/models/neuron/synapse_dynamics/synapse_dynamics_structural_common.py", line 111, in write_structural_parameters
self.__write_post_to_pre_table(
spynnaker/pyNN/models/neuron/synapse_dynamics/synapse_dynamics_structural_common.py", line 332, in __write_post_to_pre_table
raise Exception("Too many initial connections per incoming neuron")

@Christian-B
Copy link
Member Author

Fails even with a hard reset:
Forced by)
pop = sim.Population(9, sim.IF_curr_exp(), label="pop_2")
before the second run.

@dkfellows dkfellows added this to the 7.1.0 milestone Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants