brainpy.math.to_object#

brainpy.math.to_object(f=None, child_objs=None, dyn_vars=None, name=None)[source]#

Transform a Python function to BrainPyObject.

Parameters
  • f (function, callable) – The python function.

  • child_objs (Callable, BrainPyObject, sequence of BrainPyObject, dict of BrainPyObject) – The children objects used in this Python function.

  • dyn_vars (Variable, sequence of Variable, dict of Variable) – The Variable instance used in the Python function.

  • name (str) – The name of the created BrainPyObject.

Returns

func – The instance of BrainPyObject.

Return type

FunAsObject