mario.Database.reset_to_flows#
Use this before manual flow-side scenario edits so the scenario keeps only its stored flow blocks.
For the full manual shock workflow, see Shock analyses.
- Database.reset_to_flows(scenario)#
Reset a scenario so only flow-side matrices remain materialized.
- Parameters:
scenario – Scenario to rewrite.
- Returns:
The selected scenario is replaced with its flow blocks only.
- Return type:
None
Notes
This is useful before manual flow-side edits with
update_scenarios(). After the reset, already materialized coefficient-side or derived matrices are discarded so the scenario is left in one consistent flow representation.For IOT databases, the kept blocks are
Z,E,V,EY,VYandY.For SUT databases, the kept blocks are
U,S,Ea,Ec,Va,Vc,Ya,Yc,EYandVY.Accessing other matrices afterwards can still trigger on-demand reconstruction from the stored flow-side state.