From 0b18dcdecf6951e4d619641519df9a3558ca9573 Mon Sep 17 00:00:00 2001 From: Andrew Rowley Date: Tue, 10 Oct 2023 15:03:37 +0100 Subject: [PATCH] Try to fix this --- spynnaker/pyNN/utilities/struct.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spynnaker/pyNN/utilities/struct.py b/spynnaker/pyNN/utilities/struct.py index e79f9a8344..3d006fc4a5 100644 --- a/spynnaker/pyNN/utilities/struct.py +++ b/spynnaker/pyNN/utilities/struct.py @@ -229,7 +229,8 @@ def get_generator_data(self, values, vertex_slice=None): # We want the data generated "per neuron" regardless of how many - # there must be a single value for this to work if vertex_slice is None: - self.__gen_data_one_for_all(data, gen_data, values, name) + self.__gen_data_one_for_all(data, gen_data, values, name, + n_repeats) # If we know the array size, the values can vary per neuron else: @@ -246,7 +247,7 @@ def get_generator_data(self, values, vertex_slice=None): # Make it one return numpy.concatenate(all_data) - def __gen_data_one_for_all(self, data, gen_data, values, name): + def __gen_data_one_for_all(self, data, gen_data, values, name, n_repeats): """ Generate data with a single value for all neurons. """ @@ -254,9 +255,8 @@ def __gen_data_one_for_all(self, data, gen_data, values, name): # that one sub-set covers all neurons) data.append(1) - # How many times to repeat the next bit (once for each neuron - # which is determined at execution time) - data.append(REPEAT_PER_NEURON_FLAG) + # How many times to repeat the next bit + data.append(n_repeats) # Get the value to write, of which there can only be one # (or else there will be an error here ;)