OperatorBase.assign_parameters¶
- abstract OperatorBase.assign_parameters(param_dict)[source]¶
Binds scalar values to any Terra
Parameters
in the coefficients or primitives of the Operator, or substitutes oneParameter
for another. This method differs from Terra’sassign_parameters
in that it also supports lists of values to assign for a giveParameter
, in which case self will be copied for each parameterization in the binding list(s), and all the copies will be returned in anOpList
. If lists of parameterizations are used, everyParameter
in the param_dict must have the same length list of parameterizations.- Parameters
param_dict (
Dict
[ParameterExpression
,Union
[Number
,ParameterExpression
,List
[Union
[Number
,ParameterExpression
]]]]) – The dictionary ofParameters
to replace, and values or lists of values by which to replace them.- Return type
- Returns
The
OperatorBase
with theParameters
in self replaced by the values orParameters
in param_dict. If param_dict contains parameterization lists, thisOperatorBase
is anOpList
.