modeci_mdf.execution_engine.EvaluableInput

class modeci_mdf.execution_engine.EvaluableInput(input_port: InputPort, verbose: bool | None = False)[source]

Bases: object

Evaluates input value at the InputPort of the node during MDF graph execution.

Parameters:
  • input_port – The InputPort is an attribute of a Node which imports information to the Node

  • verbose – If set to True Provides in-depth information else verbose message is not displayed

Methods

evaluate([parameters, array_format])

Evaluates value at Input port based on parameters and array_format

set_input_value(value)

Set a new value at input port

set_input_value(value: str | int | ndarray)[source]

Set a new value at input port

Parameters:

value – Value to be set at Input Port

evaluate(parameters: Dict[str, Any] = None, array_format: str = 'numpy') int | ndarray[source]

Evaluates value at Input port based on parameters and array_format

Parameters:
  • parameters – Dictionary of parameters

  • array_format – It is a n-dimensional array

Returns:

value at Input port