-
Notifications
You must be signed in to change notification settings - Fork 222
Description
For ResStock, it would be extremely helpful to be able to skip simulations. The context is that we have measures (e.g., apply wall insulation) that only apply to a subset of the building stock (e.g., buildings with uninsulated walls). If the simulation continues without applying this measure, it means we are running a huge number of additional simulations that we don't need to be.
Skipping simulations should work by using:
runner.registerAsNotApplicable
return false
Using registerAsNotApplicable; return true should work as it does now (measure is not applied but simulation continues).
Note that one can of course use registerError; return false as a way to not run simulations, but then it becomes really difficult to determine what's a "true" error (e.g., measure syntax error) and what is simply us trying to skip a simulation.