@@ -201,7 +201,11 @@ Falls back to `tilde_observe!!(context, right, left, vi)` ignoring the informati
201201and indices; if needed, these can be accessed through this function, though.
202202"""
203203function tilde_observe!! (context, right, left, vname, vi)
204- is_rhs_model (right) && throw (ArgumentError (" `~` with a model on the right-hand side of an observe statement is not supported" ))
204+ is_rhs_model (right) && throw (
205+ ArgumentError (
206+ " `~` with a model on the right-hand side of an observe statement is not supported" ,
207+ ),
208+ )
205209 return tilde_observe!! (context, right, left, vi)
206210end
207211
@@ -215,7 +219,11 @@ By default, calls `tilde_observe(context, right, left, vi)` and accumulates the
215219probability of `vi` with the returned value.
216220"""
217221function tilde_observe!! (context, right, left, vi)
218- is_rhs_model (right) && throw (ArgumentError (" `~` with a model on the right-hand side of an observe statement is not supported" ))
222+ is_rhs_model (right) && throw (
223+ ArgumentError (
224+ " `~` with a model on the right-hand side of an observe statement is not supported" ,
225+ ),
226+ )
219227 logp, vi = tilde_observe (context, right, left, vi)
220228 return left, acclogp_observe!! (context, vi, logp)
221229end
@@ -682,7 +690,11 @@ Falls back to `dot_tilde_observe!!(context, right, left, vi)` ignoring the infor
682690name and indices; if needed, these can be accessed through this function, though.
683691"""
684692function dot_tilde_observe!! (context, right, left, vn, vi)
685- is_rhs_model (right) && throw (ArgumentError (" `~` with a model on the right-hand side of an observe statement is not supported" ))
693+ is_rhs_model (right) && throw (
694+ ArgumentError (
695+ " `~` with a model on the right-hand side of an observe statement is not supported" ,
696+ ),
697+ )
686698 return dot_tilde_observe!! (context, right, left, vi)
687699end
688700
@@ -695,7 +707,11 @@ probability, and return the observed value and updated `vi`.
695707Falls back to `dot_tilde_observe(context, right, left, vi)`.
696708"""
697709function dot_tilde_observe!! (context, right, left, vi)
698- is_rhs_model (right) && throw (ArgumentError (" `~` with a model on the right-hand side of an observe statement is not supported" ))
710+ is_rhs_model (right) && throw (
711+ ArgumentError (
712+ " `~` with a model on the right-hand side of an observe statement is not supported" ,
713+ ),
714+ )
699715 logp, vi = dot_tilde_observe (context, right, left, vi)
700716 return left, acclogp_observe!! (context, vi, logp)
701717end
0 commit comments