Skip to content

Commit eed80e5

Browse files
authored
Interpolate DynamicPPL.check_dot_tilde_rhs into macro (#867)
* Interpolate DynamicPPL.check_dot_tilde_rhs into macro * Changelog
1 parent fb5413f commit eed80e5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

HISTORY.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# DynamicPPL Changelog
22

3+
## 0.35.6
4+
5+
Fixed the implementation of `.~`, such that running a model with it no longer requires DynamicPPL itself to be loaded.
6+
37
## 0.35.5
48

59
Several internal methods have been removed:

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.35.5"
3+
version = "0.35.6"
44

55
[deps]
66
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/compiler.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ Generate the expression that replaces `left .~ right` in the model body.
519519
function generate_dot_tilde(left, right)
520520
@gensym dist left_axes idx
521521
return quote
522-
$dist = DynamicPPL.check_dot_tilde_rhs($right)
522+
$dist = $(DynamicPPL.check_dot_tilde_rhs)($right)
523523
$left_axes = axes($left)
524524
for $idx in Iterators.product($left_axes...)
525525
$left[$idx...] ~ $dist

0 commit comments

Comments
 (0)