Controls

class component_model.utils.controls.Controls(limit_err: int = logging.WARNING)

Bases: object

Keep track of float variable changes.

limit_err: Determines how limit errors are dealt with.

Anything below critical sets the value to the limit and provides a logger message. Critical leads to a program run error.

__init__(limit_err: int = logging.WARNING)

Methods

__init__([limit_err])

append(crl)

Append one or several Control object(s).

extend(crls)

step(time, dt)

Step towards the goals (if goals are set).

Attributes

append(crl: Control)

Append one or several Control object(s).

extend(crls: tuple[Control, ...])
step(time: float, dt: float)

Step towards the goals (if goals are set).

limit_err: int = 30
property nogoals