Skip to content

Commit 689ae3a

Browse files
committed
Update model_spec_inference.jl
1 parent f2f4c17 commit 689ae3a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/mtg/model_spec_inference.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ end
331331

332332
function _infer_input_bindings!(model_specs; scale_reachability=nothing)
333333
for (scale, specs_at_scale) in pairs(model_specs)
334+
# When a scale is absent from the initial MTG, input producer inference at
335+
# init time is unreliable (dynamic growth may introduce it later). Keep
336+
# bindings unresolved and let runtime resolve from actual dependencies.
337+
if !isnothing(scale_reachability) && !haskey(scale_reachability, scale)
338+
continue
339+
end
334340
for (process, spec) in pairs(specs_at_scale)
335341
current_bindings = input_bindings(spec)
336342
current_bindings isa NamedTuple || continue

0 commit comments

Comments
 (0)