コード例 #1
0
 def before_run(self, run_namespace=None):
     # Check units
     self.equations.check_units(self, run_namespace=run_namespace)
     # Check that subexpressions that refer to stateful functions are labeled
     # as "constant over dt"
     check_subexpressions(self, self.equations, run_namespace)
     super(NeuronGroup, self).before_run(run_namespace=run_namespace)
コード例 #2
0
ファイル: neurongroup.py プロジェクト: brian-team/brian2
 def before_run(self, run_namespace=None):
     # Check units
     self.equations.check_units(self, run_namespace=run_namespace)
     # Check that subexpressions that refer to stateful functions are labeled
     # as "constant over dt"
     check_subexpressions(self, self.equations, run_namespace)
     super(NeuronGroup, self).before_run(run_namespace=run_namespace)