Skip to main content

numbered_snapshots

Function numbered_snapshots 

Source
pub fn numbered_snapshots<'a>(
    nets: &[&'a Network],
    base: i64,
) -> Result<Vec<GridfmSnapshot<'a>>>
Expand description

Number a list of networks into snapshots, stamping the k-th base + k — the one place the “k-th input is scenario base + k” rule lives, so the CLI and the Python binding can’t drift. Checked: returns Error::ScenarioIdOverflow rather than wrapping or panicking if a scenario id exceeds i64.