Skip to content

Commit

Permalink
Merge branch 'master' into torfjelde/generated-quantities-bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm authored Nov 4, 2024
2 parents e6f8841 + 99def88 commit 5b63b09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/varinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1694,6 +1694,8 @@ Return the current value(s) of the random variables sampled by `spl` in `vi`.
The value(s) may or may not be transformed to Euclidean space.
"""
getindex(vi::UntypedVarInfo, spl::Sampler) =
copy(getindex(vi.metadata.vals, _getranges(vi, spl)))
getindex(vi::VarInfo, spl::Sampler) = copy(getindex_internal(vi, _getranges(vi, spl)))
function getindex(vi::TypedVarInfo, spl::Sampler)
# Gets the ranges as a NamedTuple
Expand Down

0 comments on commit 5b63b09

Please sign in to comment.