finesse.analysis.actions.base.convert_str_to_parameter

finesse.analysis.actions.base.convert_str_to_parameter(model, attr)[source]

Converts names component.parameter or component to a parameter object. Will return default parameter when component name is given.

Parameters
modelModel

Model object to look for parameter in

attr[str | Parameter]

String value for the name of an element or a parameters full name. If a Parameter is given its full name will be used to grab the equivalent parameter in this Model.

Returns
parameter

The equivalent Parameter object for the attr provided