Skip to content

Commit

Permalink
Fixed spike source array recording without sending
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Apr 27, 2016
1 parent 57581c7 commit 57c13c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spynnaker/pyNN/models/spike_source/spike_source_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,17 @@ def set_recording_spikes(self):
self._spike_recorder.record = True

def get_spikes(self, placements, graph_mapper, buffer_manager):

return self._spike_recorder.get_spikes(
self.label, buffer_manager,
(ReverseIPTagMulticastSourcePartitionedVertex.
_REGIONS.RECORDING_BUFFER.value),
(ReverseIPTagMulticastSourcePartitionedVertex.
_REGIONS.RECORDING_BUFFER_STATE.value),
placements, graph_mapper, self,
lambda subvertex: subvertex.virtual_key)
lambda subvertex:
subvertex.virtual_key if subvertex.virtual_key is not None
else 0)

@property
def model_name(self):
Expand Down

0 comments on commit 57c13c6

Please sign in to comment.