Parametrization API

Providing arguments for dynamic parametrization

The following objects help to provide parameters inside the dynamic parametrization decorator balder.parametrize_by_feature().

The Value object

class balder.parametrization.Value(value: _balder.parametrization.ValueTypeT)

allows to parametrize a parametrization by a fix value

property value: _balder.parametrization.ValueTypeT

returns the value of the parametrization

The Parameter object

class balder.parametrization.Parameter(name: str)

allows to parametrize a parametrization by another parametrization value

property name: str

returns the name of the parameter

The FeatureAccessSelector object

class balder.parametrization.FeatureAccessSelector(device: Type[Device], device_property_name: str, feature_property_name: str, parameters: Dict[str, FeatureAccessSelector | Value] = <factory>)

helper object for dynamic parametrizing by feature method/property

get_parameters(of_type: Type[FeatureAccessSelector | Parameter | Value] | None = None) Dict[str, FeatureAccessSelector | Parameter | Value]

Returns the parameters of this access selector

Parameters

of_type – allows to filter the parameters by the value’s type

get_value(available_parameters: Dict[str, Any]) List[Any]

accesses the configured method/property