Expand description
Scenario files: one small TOML file that drives the demo, a test or a bug report.
name = "demo"
day = "2025-10-02"
[market]
source = "synthetic" # or "file"
seed = 7
[clock]
start = "2025-10-01T10:00:00+02:00" # optional; default 10:00 Berlin on the day before
[[fault]] # optional, any number: disturb one asset
asset = "bess-hamburg-1"
kind = "offline" # or "stuck"
from = "2025-10-02T12:00:00+02:00"
to = "2025-10-02T13:00:00+02:00"Whether a fault’s asset exists is checked against the portfolio by the caller.
Structs§
- Scenario
- A validated scenario.
- Scenario
Problem - One problem with a scenario file.
Enums§
- Market
Source - Where the scenario’s market data comes from.
Constants§
- DEFAULT_
HISTORY_ DAYS - Earlier synthetic days generated by default (the forecast models’ 28-day window).
- MAX_
HISTORY_ DAYS - At most this many earlier days.
Functions§
- data_
file - The data file a scenario names, read best-effort so its problems can be reported even when other fields are invalid.