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"
[dso] # optional: a grid operator asks the pool for flexibility
congestion_point = "ea1.2026-11.netz-nord.example:cp-hh-nord"
request_at = "2025-10-01T16:00:00+02:00"
isps = [69, 76] # first and last quarter of the delivery day, from 1
min_kw = -400 # the requested band, one direction
max_kw = -100
dispute_isp = 72 # optional: the operator settles this quarter differentlyWhether a fault’s asset exists is checked against the portfolio by the caller.
Structs§
- Dso
- A simulated grid operator: one request for a band of deviation behind a congestion point.
- 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.