mario.CoreModel.calc_all

CoreModel.calc_all(matrices=['z', 'v', 'e', 'Z', 'V', 'E'], scenario='baseline', force_rewrite=False, **kwargs)

Calculates the input-output matrices for different scenarios.

Notes

By default, the function avoid the calculation of the already existing matrices in the scenario datasets. In case the user needs to overwrite the matrices, force_rewrite = True can be used.

It tries to find the missing data for calculating another data in a recursive process with maximum five tries.

Parameters:
  • matrices (list) – a list of matrices to be calculated (default values are [“z”, “v”, “e”,’Z’,’V’,’E’])

  • scenario (str) – the name of the scenario

  • force_rewrite (bool) – False if over-write is not allowed (faster)