Skip to content

Commit

Permalink
Updated for latest _get_spiketimes (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson authored and apdavison committed Oct 4, 2018
1 parent 6e7cdf8 commit bf87b98
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pyNN/neuroml/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ def _record(self, variable, new_ids, sampling_interval=None):


def _get_spiketimes(self, id):
return numpy.array([id, id+5], dtype=float) % self._simulator.state.t

if hasattr(id, "__len__"):
spks = {}
for i in id:
spks[i] = numpy.array([i, i + 5], dtype=float) % self._simulator.state.t
return spks
else:
return numpy.array([id, id + 5], dtype=float) % self._simulator.state.t

def _get_all_signals(self, variable, ids, clear=False):
# assuming not using cvode, otherwise need to get times as well and use IrregularlySampledAnalogSignal
Expand Down

0 comments on commit bf87b98

Please sign in to comment.