mario.parse_exiobase_sut
- mario.parse_exiobase_sut(
- path: str,
- calc_all: bool = False,
- name: str = None,
- year: int = None,
- add_extensions: str | None = None,
- model: str = 'Database',
- version: str | None = None,
- **kwargs,
Parse the monetary EXIOBASE SUT into a
Databaseinstance.Note
EXIOBASE
3.8.2and locally supplied3.11.2MRSUT bundles share the same text layout and parser. Automatic SUT downloads are available for3.8.2only.- Parameters:
path (str) – Path to the EXIOBASE SUT directory or ZIP archive containing
supply.csv,use.csv,final_demand.csvandvalue_added.csv.calc_all (boolean) – if True, by default will calculate z,v,e after parsing
year (int, Optional) – optional to the Database (just for recoding the metadata)
add_extensions (str, Optional) – optional path to the corresponding EXIOBASE IOT. When provided, the parser reads only the IOT extension blocks and uses them to populate
EaandEYfor the SUT.version (str, Optional) – Release label in major.minor.patch form. Checked against a release found in metadata or the bundle/directory name; otherwise recorded as the caller-supplied release. The
meta.jsonfieldversis a revision date and does not identify a release. Leave unset if the release is unknown. For a confirmed local 3.11.2 bundle, passversion="3.11.2".name (str, Optional) – optional but suggested. is useful for visualization and metadata.
model (str, optional) – Public MARIO model class to instantiate; defaults to
Database.
- Return type:
mario.Database
See the EXIOBASE monetary guide for local MRSUT imports and download availability.