mario.parse_from_pymrio#
- mario.parse_from_pymrio(io, value_added, satellite_account, include_meta=True)#
Convert a
pymrio.IOSysteminto amario.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 tosatellite_accountto 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 tovalue_addedto the satellite side. When both arguments are"all", MARIO looks for exactly one factor-like Extension such asfactor_inputsorfactor_of_productionand assigns the rest to satellites.include_meta (bool) – if True, will record the pymrio.meta into mario.meta
Returns – mario.Database