mario.parse_from_pymrio#

mario.parse_from_pymrio(io, value_added, satellite_account, include_meta=True)#

Convert a pymrio.IOSystem into a mario.Database.

Parameters:
  • io (pymrio.IOSystem) – the pymrio IOSystem to be converted to mario.Database

  • value_added (dict or str) – value-added mapper. Keys are pymrio Extension names and values are row selectors. Use "all" as one dictionary value to assign the full Extension to factors. As a top-level shorthand, value_added="all" assigns all Extensions not explicitly assigned to satellite_account to the factor side.

  • satellite_account (dict or str) – satellite-account mapper. Keys are pymrio Extension names and values are row selectors. Use "all" as one dictionary value to assign the full Extension to satellites. As a top-level shorthand, satellite_account="all" assigns all Extensions not explicitly assigned to value_added to the satellite side. When both arguments are "all", MARIO looks for exactly one factor-like Extension such as factor_inputs or factor_of_production and assigns the rest to satellites.

  • include_meta (bool) – if True, will record the pymrio.meta into mario.meta

  • Returns – mario.Database