Retrieve the MCMC specification for a given variable.
- Parameters:
var (Var) – The model variable for which to get the MCMC specification.
- Return type:
MCMCSpec | None
- Returns:
The MCMC specification if available, otherwise None.
- Raises:
TypeError – If the inference attached to the variable is not of type MCMCSpec.