You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/model_execution.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,12 @@ the runtime can infer defaults from model traits:
25
25
-`timestep_hint(::Type{<:MyModel})`
26
26
-`meteo_hint(::Type{<:MyModel})`
27
27
28
+
If users do not provide `InputBindings(...)`, runtime infers same-name bindings:
29
+
- first from a unique producer at the same scale;
30
+
- otherwise from a unique producer at another scale;
31
+
- if no producer exists, input stays unresolved (so initialization/forced values can be used);
32
+
- if multiple producers are possible, runtime errors and asks for explicit `InputBindings(...)`.
33
+
28
34
For timestep hints:
29
35
-`Dates.FixedPeriod` sets a fixed inferred timestep, e.g. `Dates.Day(1)`.
30
36
-`(min_period, max_period)` sets a required range. For models with only range hints,
@@ -39,7 +45,7 @@ For meteo hints:
39
45
Inspection helpers:
40
46
-`resolved_model_specs(mapping)` returns resolved specs after inference/validation.
41
47
-`explain_model_specs(mapping_or_sim)` prints a compact summary (`timestep`,
42
-
`meteo_bindings`, `meteo_window`) for each model process.
48
+
`input_bindings`, `meteo_bindings`, `meteo_window`) for each model process.
43
49
44
50
Policy parameterization:
45
51
-`Integrate()` defaults to `SumReducer()`; you can pass another reducer, e.g. `Integrate(MeanReducer())` or `Integrate(vals -> maximum(vals) - minimum(vals))`.
0 commit comments