Fix get_posterior_parameters
Get rid of setting variables from the base workspace in the function, making the function read-only (as the name suggests)
Get rid of setting variables from the base workspace in the function, making the function read-only (as the name suggests)