3245eece6e5951f3216d030f7fe3200c4caf3a6f,brian2/groups/neurongroup.py,NeuronGroup,_create_variables,#NeuronGroup#Any#,368

Before Change


                                             is_bool=eq.is_bool)
        
            elif eq.type == STATIC_EQUATION:
                s[eq.varname] = Subexpression(eq.varname,
                                              eq.unit,
                                              dtype=brian_prefs["core.default_scalar_dtype"],
                                              expr=str(eq.expr),

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"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: e52a4ef94b4a3a0b513debfe02ea2e3cc0e52aa5
Time: 2013-10-02
Author: marcel.stimberg@ens.fr
File Name: brian2/core/variables.py
Class Name: VariableView
Method Name: __setitem__


Project Name: brian-team/brian2
Commit Name: 5e96378ecd3f4c401f4355e2a6065fe6967bf571
Time: 2013-10-04
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/subgroup.py
Class Name: Subgroup
Method Name: __init__