Results Guide¶
Result Shape¶
Results stores simulation output as a dict of columns. Each appended row
contains metadata and one value for each state variable.
| Column | Meaning |
|---|---|
timestep |
Outer simulation step |
substep |
State update block index |
run |
Monte Carlo run index |
subset |
Parameter subset index |
| state keys | Values from the model state |
Columnar Storage¶
The engine preallocates result capacity when it can compute the expected row count:
Early exit can produce fewer rows than the preallocated capacity. Conversion methods trim unused slots automatically.
Convert to Lists¶
This returns a cadCAD-compatible list of row dictionaries.
Convert to pandas¶
to_dataframe() requires pandas:
Merge Results¶
Experiment.run() uses Results.merge() internally, but it can also be called
directly:
Merging preserves row order within each input result object.