mario.Database.parse_scenario#

Database.parse_scenario(parser, *args, new_scenario, calc_all=False, **kwargs)#

Parse one compatible database and import it as a new scenario.

Parameters:
  • parser – Public parser name such as "parse_exiobase" or a callable parser entrypoint accepting model=....

  • *args – Optional positional arguments forwarded to the selected parser.

  • new_scenario – Name stored for the imported scenario.

  • calc_all – When True, compute the dependent matrices after importing the raw parser blocks.

  • **kwargs – Keyword arguments forwarded to the selected parser.

Returns:

The current instance, updated in place.

Return type:

Database