https://github.com/CliMA/CalibrateEmulateSample.jl/blob/182d574271e6ca6ff552daa085caad07eda37c04/src/MarkovChainMonteCarlo.jl#L426