modeci_mdf.functions.standard.create_python_function

modeci_mdf.functions.standard.create_python_function(name: str = None, expression_string: str = None, arguments: List[str] = None) types.FunctionType[source]

Create a Python function e.g. linear, exponential, sin, cos, ReLu

Parameters:
  • name – name of the function e.g.’sin’,’cos’,’linear’

  • expression_string – Function expression in string format

  • arguments – list of inputs provided to obtain result from the function

Returns:

A function object