modeci_mdf.mdf.InputPort

class modeci_mdf.mdf.InputPort(id: str, shape=None, type: Optional[str] = None, *, metadata: Optional[Dict[str, Any]] = None)[source]

Bases: MdfBase

The InputPort is an attribute of a Node which allows external information to be input to the Node

Variables:
  • id (str) – The unique (for this Node) id of the input port,

  • shape (Optional[Tuple[int, ...]]) – The shape of the input port. This uses the same syntax as numpy ndarray shapes (e.g., numpy.zeros(shape) would produce an array with the correct shape

  • type (Optional[str]) – The data type of the input received at a port.

Method generated by attrs for class InputPort.

Methods