9c81949fc7d48bd0b495d0b26e260a59dda14ec7,brian2/monitors/spikemonitor.py,SpikeMonitor,__init__,#SpikeMonitor#Any#Any#Any#Any#Any#Any#,58

Before Change



    def __init__(self, source, record=True, when="end", order=0,
                 name="spikemonitor*", codeobj_class=None):
        self.record = bool(record)
        //: The source we are recording from
        self.source =source

        self.codeobj_class = codeobj_class

After Change


        // Since this now works for general events not only spikes, we have to
        // pass the information about which variable to use to the template,
        // it can not longer simply refer to "_spikespace"
        eventspace_name = "_{}space".format(event)
        template_kwds = {"eventspace_variable": source.variables[eventspace_name]}
        needed_variables= [eventspace_name]
        CodeRunner.__init__(self, group=self, code="", template="spikemonitor",
                            name=name, clock=source.clock, when=when,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: brian-team/brian2
Commit Name: 9c81949fc7d48bd0b495d0b26e260a59dda14ec7
Time: 2015-06-18
Author: marcel.stimberg@inserm.fr
File Name: brian2/monitors/spikemonitor.py
Class Name: SpikeMonitor
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: e97e3a22fcf318f1459b0c559956fa12b1dfb66d
Time: 2019-05-09
Author: ericarellano@me.com
File Name: src/python/pants/rules/core/test.py
Class Name:
Method Name: fast_test


Project Name: ray-project/ray
Commit Name: 1b1466748f1db72835a594d73d502e9787e080a9
Time: 2020-09-04
Author: wlx65005@gmail.com
File Name: streaming/python/runtime/transfer.py
Class Name: DataReader
Method Name: __init__


Project Name: ray-project/ray
Commit Name: f31ee84bfdc6dc2325c8890412a965e509074d0a
Time: 2020-09-05
Author: wlx65005@gmail.com
File Name: streaming/python/runtime/transfer.py
Class Name: DataReader
Method Name: __init__