pysdic.ComposedTransformation.set_parameters#

ComposedTransformation.set_parameters(value, *, override_lock=False)[source]#

Set the parameters of the composition, with an option to override the lock.

The input parameters are split according to the number of parameters of each transformation and set to each transformation in the sequence.

Note

The lock of the composition and the locks of the transformations are both respected, unless override_lock is True. All the locks and the input are checked before any modification: if an error is raised, the parameters of all the transformations are unchanged.

Parameters:
  • value (Optional[ArrayLike]) – A 1D array of shape \((n_p,)\) containing the parameters to set, or None to unset the parameters of all the transformations.

  • override_lock (bool, optional (default: False)) – Whether to override the locks and allow setting parameters even if they are locked.

Raises:
  • ValueError – If the input value is not a 1D array, does not have the correct shape or is not finite.

  • RuntimeError – If the parameters are locked and override_lock is False.

Return type:

None