pyprobound.base.Call

class Call(cmpt: Component, fun: str, kwargs: dict[str, Any])

Bases: NamedTuple

A function to be called during optimization.

Run as getattr(cmpt, fun)(**kwargs).

cmpt

The component to be called.

fun

The name of the function to be called.

kwargs

Any keyword arguments that will be passed to the function.

__init__()

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

cmpt

fun

kwargs

Non-Inherited Members

cmpt: Component
fun: str
kwargs: dict[str, Any]