uvex_transients.models.core.parameters.Parameter.fix#

Parameter.fix(value: ScalarPhysicalValue) → None[source]#

Pin this parameter to a constant physical value, bypassing prior.

value need not lie within prior’s support – fixing is exactly the escape hatch for exploring physical values the prior wouldn’t itself generate (e.g. a diagnostic run at a fiducial value from the literature). It only needs to be well-defined: compatible with scale’s units and mapping, through transform, to a finite latent value.

Parameters:

value (Quantity, float, or int) – The physical value to fix this parameter to.

Raises:
  • TypeError – If value is not a Quantity, float, or int, or if its units are incompatible with scale’s.

  • ValueError – If value maps to a non-finite latent value (e.g. a non-positive physical value under a transform="log").

See also

unfix

Release a fixed parameter.