Fix/Freeze Parameter

I believe this can be accomplished by using DiscreteUniform and setting the lower and upper bound to the same value. I’m using the DEMetropolisZ sampler and it works just fine when combined, e.g., with parameters on Normal or Uniform distributions.

with pm.Model() as model:
    param0 = pm.TruncatedNormal('param0', 0, [-1, 1])
    fixed = pm.DiscreteUniform('fixed', lower = 3.14, upper = 3.14)