b2614e6be454735b2e9caed9fc3a79dd7d64420d,brian2/groups/neurongroup.py,Thresholder,__init__,#Thresholder#Any#,98

Before Change


    and ``refractory_until`` attributes.
    """
    def __init__(self, group):
        indices = {"_element_idx": Index("_element_idx", True)}
        // For C++ code, we need these names explicitly, since not_refractory
        // and lastspike might also be used in the threshold condition -- the
        // names will then refer to single (constant) values and cannot be used
        // for assigning new values

After Change


                                 when=(group.clock, "thresholds"),
                                 name=group.name+"_thresholder*",
                                 template_kwds=template_kwds,
                                 iterate_all=["_element"])
    
    def update_abstract_code(self):
        self.abstract_code = "_cond = " + self.group.threshold
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: brian-team/brian2
Commit Name: b2614e6be454735b2e9caed9fc3a79dd7d64420d
Time: 2013-07-25
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/neurongroup.py
Class Name: Thresholder
Method Name: __init__


Project Name: brian-team/brian2
Commit Name: b2614e6be454735b2e9caed9fc3a79dd7d64420d
Time: 2013-07-25
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: _set_with_code


Project Name: brian-team/brian2
Commit Name: b2614e6be454735b2e9caed9fc3a79dd7d64420d
Time: 2013-07-25
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/neurongroup.py
Class Name: StateUpdater
Method Name: __init__