From 29b4631d9b2e596003061e5af7781f1bf6744e65 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Thu, 27 Mar 2025 17:56:07 +0000 Subject: [PATCH 1/2] Interpolate DynamicPPL.check_dot_tilde_rhs into macro --- src/compiler.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.jl b/src/compiler.jl index 95e76778b..4771b0171 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -519,7 +519,7 @@ Generate the expression that replaces `left .~ right` in the model body. function generate_dot_tilde(left, right) @gensym dist left_axes idx return quote - $dist = DynamicPPL.check_dot_tilde_rhs($right) + $dist = $(DynamicPPL.check_dot_tilde_rhs)($right) $left_axes = axes($left) for $idx in Iterators.product($left_axes...) $left[$idx...] ~ $dist From 8fdf764e10b50ccbf576c6bbcbb4f765ff70b41f Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Thu, 27 Mar 2025 17:57:48 +0000 Subject: [PATCH 2/2] Changelog --- HISTORY.md | 4 ++++ Project.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 3ea8071f3..5113a43ed 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # DynamicPPL Changelog +## 0.35.6 + +Fixed the implementation of `.~`, such that running a model with it no longer requires DynamicPPL itself to be loaded. + ## 0.35.5 Several internal methods have been removed: diff --git a/Project.toml b/Project.toml index 05d33ec36..e49d11908 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DynamicPPL" uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8" -version = "0.35.5" +version = "0.35.6" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"