uvex_transients.models.core.parameters.Parameter.fix#
- Parameter.fix(value: ScalarPhysicalValue) None[source]#
Pin this parameter to a constant physical value, bypassing
prior.valueneed not lie withinprior’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 withscale’s units and mapping, throughtransform, to a finite latent value.- Parameters:
value (
Quantity,float, orint) – The physical value to fix this parameter to.- Raises:
TypeError – If
valueis not a Quantity, float, or int, or if its units are incompatible withscale’s.ValueError – If
valuemaps to a non-finite latent value (e.g. a non-positive physical value under atransform="log").
See also
unfixRelease a fixed parameter.