We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f4c17 commit 689ae3aCopy full SHA for 689ae3a
1 file changed
src/mtg/model_spec_inference.jl
@@ -331,6 +331,12 @@ end
331
332
function _infer_input_bindings!(model_specs; scale_reachability=nothing)
333
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
340
for (process, spec) in pairs(specs_at_scale)
341
current_bindings = input_bindings(spec)
342
current_bindings isa NamedTuple || continue
0 commit comments