mario.parse_useeio#
- mario.parse_useeio(path: str, *, format: str = 'auto', table: str = 'SUT', model_alias: str | None = None, release_year: int | None = None, model: str = 'Database', name: str | None = None, calc_all: bool = False, **kwargs) object#
Parse one local USEEIO workbook export.
- Parameters:
path (str) – path to one local
USEEIO*.xlsxworkbook or to a directory containing a single workbook.format (str, optional) – workbook layout selector. This is a parser-side file-format selector, not a USEEIO model alias.
autois the default and currently resolves tov2.5_workbookwhen the workbook matches the known USEEIO v2.5 export structure.model_alias (str, optional) – USEEIO model alias used to select one workbook when
pathpoints to a directory containing multiple exports, for example"yellowthroat"or"waxwing".release_year (int, optional) – USEEIO workbook release year used with
model_aliasto select a specific directory workbook. Both22and2022are accepted.table (str, optional) – currently only
SUTis supported.model (str, optional) – public MARIO model class to instantiate.
Databaseis the default and the only supported value.name (str, optional) – optional dataset name stored in metadata.
calc_all (bool, optional) – whether to materialize derived blocks immediately after parsing.
Notes
In
USEEIOnaming, aliases such asyellowthroat,kingbird,oriole, orwaxwingidentify different model families and contents. MARIO’sformat=argument instead identifies the workbook structure that the parser knows how to read. Different aliases can therefore share the same parser format.The currently relevant published national v2.5 aliases include:
yellowthroatandwaxwing: GLORIA-backed models, respectively at BEA Summary and BEA Detail level, with GHG and material-footprint extensions;kingbirdandkinglet: EXIOBASE-backed models, respectively at BEA Summary and BEA Detail level, with GHG extensions;orioleandcatbird: CEDA-backed models, respectively at BEA Summary and BEA Detail level, with GHG extensions.
The supported v2.5 workbook layout is parsed as a split-native SUT:
Sfrom workbookV;U,YcandVafrom the extended workbookUblock;EcfromB * qbecause the verified v2.5 workbook stores the direct environmental coefficient matrix on the commodity axis.
No automatic download is implemented yet. Callers should point the parser to one local workbook.