pysdic.ReparametrizedTransformation.set_parameters#
- ReparametrizedTransformation.set_parameters(value, *, override_lock=False)[source]#
Set the parameters \(\vec{q}\) of the reparametrized transformation, with an option to override the lock.
The parameters \(\vec{p} = P(\vec{q})\) of the underlying transformation are updated accordingly.
- Parameters:
value (Optional[ArrayLike]) – A 1D array of shape \((n_q,)\) containing the parameters to set, or None to unset the parameters.
override_lock (bool, optional (default:
False)) – Whether to override the lock and allow setting parameters even if they are locked.
- Raises:
ValueError – If the input value is not a 1D array or does not have the correct shape.
RuntimeError – If the parameters are locked and
override_lockis False.
- Return type:
None