4d4faa63c439d277e679996e287b78995e494869,brian2/groups/neurongroup.py,NeuronGroup,spikes,#NeuronGroup#,312
Before Change
"""
The spikes returned by the most recent thresholding operation.
"""
return self._spikespace[:self._spikespace[-1]]
def __getitem__(self, item):
if not isinstance(item, slice):
raise TypeError("Subgroups can only be constructed using slicing syntax")
After Change
"""
The spikes returned by the most recent thresholding operation.
"""
return self.variables["_spikespace"].get_value()[:self.variables["_spikespace"].get_value()[-1]]
def __getitem__(self, item):
if not isinstance(item, slice):
raise TypeError("Subgroups can only be constructed using slicing syntax")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: brian-team/brian2
Commit Name: 4d4faa63c439d277e679996e287b78995e494869
Time: 2013-09-19
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/neurongroup.py
Class Name: NeuronGroup
Method Name: spikes
Project Name: brian-team/brian2
Commit Name: 67d6ae10f35b965b8c621a3091bd790f67cc593a
Time: 2013-11-06
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/poissongroup.py
Class Name: PoissonGroup
Method Name: spikes
Project Name: brian-team/brian2
Commit Name: 4d4faa63c439d277e679996e287b78995e494869
Time: 2013-09-19
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/poissongroup.py
Class Name: PoissonGroup
Method Name: spikes
Project Name: brian-team/brian2
Commit Name: 67d6ae10f35b965b8c621a3091bd790f67cc593a
Time: 2013-11-06
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/neurongroup.py
Class Name: NeuronGroup
Method Name: spikes