Skip to content

Commit

Permalink
fix bug in Heirarchical priors
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Apr 4, 2023
1 parent daae09e commit f50c581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibration/priors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ DensityInterface.DensityKind(::HierarchicalCalPrior) = DensityInterface.IsDensit
DensityInterface.logdensityof(d::HierarchicalCalPrior, x) = Dists.logpdf(d, x)

function _construct_gain_prior(means::NamedTuple{N}, stds::NamedTuple{N}, ::Type{G}, stations) where {N, G}
gpr = NamedTuple{N}(map(G, (values(means), values(stds))))
gpr = NamedTuple{N}(map(G, values(means), values(stds)))
d = map(p->getproperty(gpr, p), stations)
return Dists.product_distribution(d)
end
Expand Down

0 comments on commit f50c581

Please sign in to comment.