3245eece6e5951f3216d030f7fe3200c4caf3a6f,brian2/groups/neurongroup.py,NeuronGroup,_create_variables,#NeuronGroup#Any#,368
Before Change
unit=Unit(1), dtype=np.int32,
constant=False)
// Add the special variable "i" which can be used to refer to the neuron index
s["i"] = device.arange(self, self._N, constant=True,
read_only=True)
for eq in self.equations.itervalues():
if eq.type in (DIFFERENTIAL_EQUATION, PARAMETER):
After Change
self.variables = Variables(self)
self.variables.add_attribute_variable("t", second, self.clock, "t_")
self.variables.add_attribute_variable("dt", second, self.clock, "dt_")
self.variables.add_constant("N", Unit(1), self._N)
if dtype is None:
dtype = defaultdict(lambda: brian_prefs["core.default_scalar_dtype"])
elif isinstance(dtype, np.dtype):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: brian-team/brian2
Commit Name: 3245eece6e5951f3216d030f7fe3200c4caf3a6f
Time: 2014-01-15
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/neurongroup.py
Class Name: NeuronGroup
Method Name: _create_variables
Project Name: brian-team/brian2
Commit Name: 3245eece6e5951f3216d030f7fe3200c4caf3a6f
Time: 2014-01-15
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/subgroup.py
Class Name: Subgroup
Method Name: __init__
Project Name: bashtage/linearmodels
Commit Name: d10794b4e3b240731d3946aa554e045ea6d259a9
Time: 2018-04-23
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/iv/test_against_stata.py
Class Name:
Method Name: construct_model