3245eece6e5951f3216d030f7fe3200c4caf3a6f,brian2/groups/poissongroup.py,PoissonGroup,__init__,#PoissonGroup#Any#Any#Any#Any#Any#,33

Before Change


        self.variables.update({"i": get_device().arange(self, N,
                                                        constant=True,
                                                        read_only=True),
                               "rates": get_device().array(self, size=N,
                                                           unit=Hz),
                               "_spikespace": get_device().array(self,
                                                                 size=N+1,

After Change


        // standard variables
        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=Unit(1), value=self._N)
        self.variables.add_arange("i", self._N, constant=True, read_only=True)
        self.variables.add_array("_spikespace", size=N+1, unit=Unit(1),
                                 dtype=np.int32)
Italian Trulli
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/poissongroup.py
Class Name: PoissonGroup
Method Name: __init__


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__