File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,15 @@ function check_dot_tilde_rhs(@nospecialize(x))
203
203
ArgumentError (" the right-hand side of a `.~` must be a `UnivariateDistribution`" )
204
204
)
205
205
end
206
+ function check_dot_tilde_rhs (x:: AbstactArray{<:Distribution} )
207
+ msg = """
208
+ As of v0.35, DynamicPPL does not allow arrays of distributions in `.~`. \
209
+ Please use `product_distribution` instead, or write a loop if necessary. \
210
+ See https://github.com/TuringLang/DynamicPPL.jl/releases/tag/v0.35.0 for more \
211
+ details.\
212
+ """
213
+ return throw (ArgumentError (msg))
214
+ end
206
215
check_dot_tilde_rhs (x:: UnivariateDistribution ) = x
207
216
function check_dot_tilde_rhs (x:: Sampleable{<:Any,AutoPrefix} ) where {AutoPrefix}
208
217
model = check_dot_tilde_rhs (x. model)
You can’t perform that action at this time.
0 commit comments