Skip to content

Commit

Permalink
Call function with correct arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Jul 25, 2019
1 parent 7df6e06 commit 8ed9411
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spynnaker/pyNN/models/neuron/synaptic_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ def get_sdram_usage_in_bytes(

def _reserve_memory_regions(
self, spec, machine_vertex, vertex_slice,
machine_graph, all_syn_block_sz, graph_mapper):
machine_graph, all_syn_block_sz, graph_mapper,
application_graph, application_vertex):
spec.reserve_memory_region(
region=POPULATION_BASED_REGIONS.SYNAPSE_PARAMS.value,
size=self._get_synapse_params_size(),
Expand All @@ -345,10 +346,8 @@ def _reserve_memory_regions(
region=POPULATION_BASED_REGIONS.SYNAPTIC_MATRIX.value,
size=all_syn_block_sz, label='SynBlocks')

synapse_dynamics_sz = \
self._get_synapse_dynamics_parameter_size(
vertex_slice,
machine_graph.get_edges_ending_at_vertex(machine_vertex))
synapse_dynamics_sz = self._get_synapse_dynamics_parameter_size(
vertex_slice, application_graph, application_vertex)
if synapse_dynamics_sz != 0:
spec.reserve_memory_region(
region=POPULATION_BASED_REGIONS.SYNAPSE_DYNAMICS.value,
Expand Down Expand Up @@ -951,7 +950,8 @@ def write_data_spec(
post_vertex_slice, in_edges, machine_time_step)
self._reserve_memory_regions(
spec, machine_vertex, post_vertex_slice, machine_graph,
all_syn_block_sz, graph_mapper)
all_syn_block_sz, graph_mapper, application_graph,
application_vertex)

ring_buffer_shifts = self._get_ring_buffer_shifts(
application_vertex, application_graph, machine_time_step,
Expand Down

0 comments on commit 8ed9411

Please sign in to comment.