Skip to content

Commit 57c3162

Browse files
mhauruAoife
authored andcommitted
Fix typo
1 parent 4530247 commit 57c3162

File tree

1 file changed

+3
-3
lines changed
  • developers/contexts/submodel-condition

1 file changed

+3
-3
lines changed

developers/contexts/submodel-condition/index.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ unwrap_sampling_context(ctx::DynamicPPL.SamplingContext) = ctx.context
108108
unwrap_sampling_context(ctx::DynamicPPL.AbstractContext) = ctx
109109
110110
@model function inner()
111-
println("inner context: $(unwrap_sampling_context(model.context))")
111+
println("inner context: $(unwrap_sampling_context(__model__.context))")
112112
x ~ Normal()
113113
return y ~ Normal()
114114
end
115115
116116
@model function outer()
117-
println("outer context: $(unwrap_sampling_context(model.context))")
117+
println("outer context: $(unwrap_sampling_context(__model__.context))")
118118
return a ~ to_submodel(inner())
119119
end
120120
@@ -124,7 +124,7 @@ with_outer_cond = outer() | (@varname(a.x) => 1.0)
124124
# 'Inner conditioning'
125125
inner_cond = inner() | (@varname(x) => 1.0)
126126
@model function outer2()
127-
println("outer context: $(unwrap_sampling_context(model.context))")
127+
println("outer context: $(unwrap_sampling_context(__model__.context))")
128128
return a ~ to_submodel(inner_cond)
129129
end
130130
with_inner_cond = outer2()

0 commit comments

Comments
 (0)