a4c44016ccee1442fcbd14837746ee388133efea,brian2/monitors/spikemonitor.py,SpikeMonitor,before_run,#SpikeMonitor#Any#,79
Before Change
raise NotImplementedError()
def before_run(self, namespace):
self.codeobj = get_device().code_object(
self,
self.name+"_codeobject*",
"", // No model-specific code
After Change
self.codeobj = create_runner_codeobj(self.source,
"", // No model-specific code
template_name="spikemonitor",
needed_variables=["_spikespace",
"_i",
"_t",
"_count",
"_source_start",
"_source_stop",
"t"],
additional_variables=self.variables,
name=self.name+"_codeobject*")
self.code_objects[:] = [weakref.proxy(self.codeobj)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: brian-team/brian2
Commit Name: a4c44016ccee1442fcbd14837746ee388133efea
Time: 2013-12-18
Author: marcel.stimberg@ens.fr
File Name: brian2/monitors/spikemonitor.py
Class Name: SpikeMonitor
Method Name: before_run
Project Name: facebookresearch/Horizon
Commit Name: cf9a9f2410d38066ba3131b54c5c5663b1f59a47
Time: 2021-01-16
Author: czxttkl@fb.com
File Name: reagent/training/world_model/seq2reward_trainer.py
Class Name: Seq2RewardTrainer
Method Name: __init__
Project Name: brian-team/brian2
Commit Name: a4c44016ccee1442fcbd14837746ee388133efea
Time: 2013-12-18
Author: marcel.stimberg@ens.fr
File Name: brian2/monitors/ratemonitor.py
Class Name: PopulationRateMonitor
Method Name: before_run