Change definition of uniform prior
Currently, uniform priors are defined as arrays in the .json
file and normal priors are defined as objects:
{
"var1": [0.7, 0.8],
"var2": {"type": "Normal", "mu": 0.7, "sigma": 0.8}
}
AFAIK there is no real reason for this difference and I could change the uniform priors to be defined as objects, as well. It would be more consistent (most important reason) and the code may be a bit easier to read (arguably, less important reason).
Change {"var1": [0.7, 0.8]}
to, e.g., {"var1": {"type": "Uniform", "a": 0.7, "b": 0.8}}
or use more descriptive names (lower
, upper
) or a tuple.