Skip to content

Commit

Permalink
Don't return constrained posterior in save_posterior
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Mar 4, 2024
1 parent cbb51f8 commit 8ac9360
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/emulate_sample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ Returns the samples in constrained (physical) parameter space.
"""
function save_posterior(mcmc, chain; filename = "samples.jld2")
posterior = MarkovChainMonteCarlo.get_posterior(mcmc, chain)
constrained_posterior = transform_unconstrained_to_constrained(
posterior,
MarkovChainMonteCarlo.get_distribution(posterior),
)
JLD2.save_object(filename, posterior)
return constrained_posterior
return posterior
end

0 comments on commit 8ac9360

Please sign in to comment.