Skip to main content

gridfm_record_batches_batch

Function gridfm_record_batches_batch 

Source
pub fn gridfm_record_batches_batch(
    snapshots: &[GridfmSnapshot<'_>],
    opts: &GridfmOptions,
) -> Result<GridfmTables>
Expand description

Build the four gridfm tables for a batch of scenarios, row-stacked and keyed by the scenario column. Pure (no I/O). Each snapshot carries its own scenario id; the include_y_bus/taps/shifts flags apply to every snapshot.

§Errors

Error::EmptyScenarioBatch for an empty batch, Error::ScenarioShapeMismatch if the snapshots don’t share one base element set (counts + bus-id order), plus everything gridfm_record_batches can return.