iode.Simulation.debug
- Simulation.debug
debug: bool
Option to automatically generates IODE lists containing pre-recursive, interdependent and post-recursive equations: _PRE, _INTER and _POST. It is used with the method
Simulation.model_simulate(). Default to False.- Parameters:
- value: bool
Examples
>>> from iode import SAMPLE_DATA_DIR, equations, lists, scalars, variables >>> from iode import Simulation >>> equations.load(f"{SAMPLE_DATA_DIR}/fun.eqs") >>> lists.load(f"{SAMPLE_DATA_DIR}/fun.lst") >>> scalars.load(f"{SAMPLE_DATA_DIR}/fun.scl") >>> variables.load(f"{SAMPLE_DATA_DIR}/fun.var")
>>> simu = Simulation() >>> # force IODE to create the three list _PRE, _INTER and _POST >>> # when the method model_simulate is called >>> simu.debug = True >>> simu.model_simulate("2000Y1", "2015Y1");
>>> lists["_PRE"] ['BRUGP', 'DTH1C', 'EX', 'ITCEE', ..., 'ZZF_', 'DTH1', 'PME', 'PMS', 'PMT'] >>> len(lists["_PRE"]) 31
>>> lists["_INTER"] ['PMAB', 'PXAB', 'ITFGO', 'ITFGI', ..., 'FLG', 'VBNP', 'VBNP_P', 'VBBP_P'] >>> len(lists["_INTER"]) 204
>>> lists["_POST"] ['IFU', 'SSHFF', 'PBBP', 'OCUF', ..., 'GAP', 'FLGR', 'FLF', 'DPUU', 'BENEF'] >>> len(lists["_POST"]) 39