Skip to content

Commit

Permalink
trim
Browse files Browse the repository at this point in the history
  • Loading branch information
odunbar committed Aug 20, 2024
1 parent a111a8a commit b6aabbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/Darcy/emulate_sample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,10 @@ function main()

param_names = get_name(posterior)

posterior_samples = vcat([get_distribution(posterior)[name] for name in get_name(posterior)]...) #samples are columns
constrained_posterior_samples =
mapslices(x -> transform_unconstrained_to_constrained(posterior, x), posterior_samples, dims = 1)

posterior_samples = reduce(vcat,[get_distribution(posterior)[name] for name in get_name(posterior)]) #samples are columns of this matrix

#... plot etc

# Save data
save(
joinpath(data_save_directory, "posterior.jld2"),
Expand Down

0 comments on commit b6aabbf

Please sign in to comment.