Skip to content

Commit 35e3c34

Browse files
committed
Implement getindex for UntypedVarInfo
1 parent 18af48a commit 35e3c34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/varinfo.jl

+1
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,7 @@ Return the current value(s) of the random variables sampled by `spl` in `vi`.
16941694
16951695
The value(s) may or may not be transformed to Euclidean space.
16961696
"""
1697+
getindex(vi::UntypedVarInfo, spl::Sampler) = copy(getindex(vi.metadata.vals, _getranges(vi, spl)))
16971698
getindex(vi::VarInfo, spl::Sampler) = copy(getindex_internal(vi, _getranges(vi, spl)))
16981699
function getindex(vi::TypedVarInfo, spl::Sampler)
16991700
# Gets the ranges as a NamedTuple

0 commit comments

Comments
 (0)