Skip to content

Commit 14ef9a4

Browse files
authored
Export concretize_top_level (#152)
1 parent b4157a4 commit 14ef9a4

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.14.1
2+
3+
Export the `concretize_top_level` function, which concretizes only the indices contained in an `AbstractPPL.Index`, and does not recurse into child optics.
4+
15
## 0.14.0
26

37
This release overhauls the `VarName` type.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "7a57a42e-76ec-4ea3-a279-07e840d6d9cf"
33
keywords = ["probablistic programming"]
44
license = "MIT"
55
desc = "Common interfaces for probabilistic programming"
6-
version = "0.14.0"
6+
version = "0.14.1"
77

88
[deps]
99
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

docs/src/varname.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ vn_conc = concretize(vn_dyn, x)
6666

6767
```@docs
6868
concretize
69+
concretize_top_level
6970
```
7071

7172
## Optics

src/AbstractPPL.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export AbstractOptic,
3333
getsym,
3434
getoptic,
3535
concretize,
36+
concretize_top_level,
3637
is_dynamic,
3738
@varname,
3839
varname,

src/varname/optic.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,6 @@ _maybe_view(val, i...; k...) = getindex(val, i...; k...)
245245
concretize_top_level(idx::Index, val)
246246
247247
Concretise only the indices of `idx` against `val`, leaving the child optic unconcretised.
248-
249-
This function is unexported and is only used internally in `canview` (for now).
250248
"""
251249
function concretize_top_level(idx::Index, val)
252250
concretized_indices = tuple(map(Base.Fix2(_concretize_index, val), idx.ix)...)

0 commit comments

Comments
 (0)