has

ParameterGroup.has(label: str) bool[source]

Check if a parameter with the given label is in the group or in a subgroup.

Parameters

label (str) – The label of the parameter, with its path in a ParameterGroup prepended.

Returns

Whether a parameter with the given label exists in the group.

Return type

bool