Public methods and standalone functions include their signatures and parameters. Filter the table by name or category, or open a category from the sidebar.

Calculation helpers include native SUT functions such as calc_u(), calc_s(), calc_U() and calc_S(), with equations, inputs and returned axes. See Calculations for the full formula overview.

238 entries

APICategoryDescription
Database.parse_scenarioParsingParse one compatible database and import it as a new scenario.
Database.parse_exiobaseParsingParse one EXIOBASE payload and import it as a new scenario.
Database.parse_from_parquetParsingParse one parquet payload and import it as a new scenario.
load_testParsingLoad one of the packaged test databases.
parse_from_excelParsingParse a database from a single Excel workbook.
parse_from_txtParsingParse a database from a folder of text or CSV files.
parse_from_parquetParsingParse a database from a folder of parquet files.
parse_from_pymrioParsingConvert a pymrio.IOSystem into a mario.Database.
parse_exiobaseParsingDispatch to the appropriate EXIOBASE parser.
parse_bonsaiParsingParse BONSAI Balanced HSUT or the native, already modelled b2 HIOT.
parse_figaroParsingParse FIGARO tables from the Eurostat API.
parse_gloriaParsingParse a locally downloaded GLORIA release.
parse_gtapParsingParse a locally downloaded GTAP bundle.
parse_wiodParsingParse one WIOD 2016 multiregional Excel workbook from the official release.
parse_oecdParsingParse OECD ICIO, OECD national IOT, or OECD SUT datasets.
parse_eoraParsingParse EORA data into a Database instance.
parse_emergingParsingParse one EMERGING MATLAB bundle from the supported Zenodo releases.
parse_ceadsParsingParse one local CEADS China provincial MRIO workbook.
parse_cepalstatParsingParse selected local CEPALSTAT COU/MIP bundles.
parse_beaParsingParse one local BEA Supply-Use release bundle.
parse_adbParsingParse one locally downloaded ADB MRIO or SRIO Excel workbook.
parse_useeioParsingParse one local USEEIO workbook export.
parse_statcanParsingParse Statistics Canada supply-use or symmetric I-O tables via WDS.
parse_istatParsingParse official ISTAT input-output workbooks from local files or a downloaded release.
parse_eurostatParsingParse Eurostat national tables directly from the official SDMX API.
parse_exiobase_3ParsingParse a monetary EXIOBASE IOT folder into a Database instance.
parse_exiobase_sutParsingParse the monetary EXIOBASE SUT into a Database instance.
download_eurostatDownloadsDownload one Eurostat SDMX slice to local CSV files.
download_statcanDownloadsDownload one StatCan full-table CSV to a local file.
download_statcan_openio_canadaDownloadsDownload the OpenIO-Canada emission-factor workbook for 2022 only.
download_istat_ioDownloadsDownload one official ISTAT input-output release zip from the public release page.
download_wiod2016DownloadsDownload one WIOD 2016 multiregional workbook from the official release links.
download_wiod2016_iot_pypDownloadsDownload the WIOD 2016 MRIO IOT workbook in previous-year prices.
download_wiod2016_national_iotDownloadsDownload the WIOD 2016 national IOT workbook bundle.
download_wiod2016_national_sutDownloadsDownload the WIOD 2016 national SUT workbook bundle.
download_wiod2016_socioeconomic_accountsDownloadsDownload the WIOD 2016 socio-economic accounts workbook.
download_emergingDownloadsDownload the EMERGING Zenodo bundle supported by MARIO.
download_hybrid_exiobaseDownloadsDownload the EXIOBASE hybrid v3.3.18 files needed by MARIO.
download_exiobase3DownloadsDownload a selected monetary EXIOBASE 3 release from Zenodo.
download_exiobase_monetaryDownloadsAlias for :func:`download_exiobase3`.
Database.queryInspectionReturn matrices from one or more scenarios with a compact shape.
Database.get_dataInspectionReturn matrices, units and indexes in a structured payload.
CoreModel.get_blockInspectionReturn the stored block object for a scenario without conversion.
CoreModel.get_block_as_pandasInspectionReturn one block converted to a pandas object.
CoreModel.get_block_as_tableInspectionReturn one block in the requested tabular backend.
CoreModel.get_block_as_matrixInspectionReturn one block in a numeric matrix backend.
CoreModel.set_blockInspectionStore one block in the selected scenario.
CoreModel.has_blockInspectionBackward-compatible alias for :meth:`has_matrix`.
CoreModel.has_matrixInspectionReturn whether one matrix is materialized for a scenario.
CoreModel.list_matricesInspectionList all matrices currently materialized for one scenario.
CoreModel.matricesInspectionScenario mappings with canonical keys and current-alias lookup.
CoreModel.available_matricesInspectionReturn all matrix names available on the current instance.
CoreModel.available_blocksInspectionBackward-compatible alias for :meth:`available_matrices`.
Database.DataFrameInspectionReturn a single dataframe view of one scenario.
CoreModel.get_block_specInspectionReturn the semantic block specification for a block name.
CoreModel.register_block_specInspectionRegister a semantic block specification on the current database.
CoreModel.list_custom_block_specsInspectionList custom block specifications registered on the instance.
CoreModel.register_operatorInspectionRegister a custom compute operator on the current database.
CoreModel.list_custom_operatorsInspectionList custom compute operators registered on the instance.
CoreModel.get_indexInspectionReturn one index level or the full index mapping for the database.
CoreModel.get_concordancesInspectionReturn classification codes for this database's native items.
CoreModel.available_concordancesInspectionAvailable target classification editions, grouped by native set.
CoreModel.get_aggregationInspectionBuild a proposed aggregation from this database's concordances.
CoreModel.available_aggregationsInspectionClassification editions and hierarchy levels usable by get_aggregation.
CoreModel.database_profileInspectionDatabase-specific GHG, compute and concordance metadata.
get_database_profileInspectionInspect registered database metadata without parsing or calculating data.
CoreModel.searchInspectionSearch index values matching a pattern within one set or across all sets.
CoreModel.setsInspectionReturn the named index levels exposed by the current table type.
CoreModel.unitsInspectionReturn database units with alias-aware access on set labels.
CoreModel.table_typeInspectionReturn the database table type.
CoreModel.tech_assumptionInspectionReturn the structural technology assumption stored on the database.
CoreModel.scenariosInspectionReturn the list of available scenario names.
CoreModel.baseline_scenario_nameInspectionReturn the public name exposed for the internal baseline scenario.
CoreModel.directoryInspectionReturn the default output directory used by the database.
CoreModel.meta_historyInspectionPrint the full metadata history.
CoreModel.save_metaInspectionPersist metadata history to disk.
CoreModel.add_noteInspectionAppend one or more user notes to the metadata history.
Database.clustersInspectionReturn the currently stored user-defined shock clusters.
Database.default_clustersInspectionReturn the automatically generated default shock clusters.
Database.available_clustersInspectionReturn the effective clusters available to shock helpers.
Database.copyInspectionReturn a deep copy of the database object.
Database.backupInspectionStore a deep-copy backup of matrices, indexes and units.
CoreModel.GDPInspectionReturn GDP totals or sector-level GDP for a scenario.
CoreModel.is_balancedInspectionCheck whether a scenario is balanced under a chosen criterion.
CoreModel.is_hybridInspectionReturn whether the database mixes multiple measurement units.
CoreModel.is_multi_regionInspectionReturn whether the database contains more than one region.
CoreModel.is_chenerymosesInspectionTest whether a multi-regional SUT follows the Chenery-Moses format.
CoreModel.is_isardInspectionTest whether a multi-regional SUT follows the Isard format.
CoreModel.calc_allCalculationsCompute and materialize one or more matrices for a scenario.
CoreModel.resolveCalculationsResolve and materialize one matrix through the compute resolver.
CoreModel.resolve_manyCalculationsResolve and materialize several matrices through the compute resolver.
CoreModel.explainCalculationsExplain how MARIO would resolve one matrix.
Database.calc_linkagesCalculationsCalculate backward and forward linkages for one scenario.
Database.calc_ghgCalculationsAggregate satellite GHG accounts into a new label row.
Database.calc_tradesCalculationsCalculate region-by-region trade matrices for one item.
Database.calc_trades_contentCalculationsCalculate region-by-region embodied trade content for one indicator.
Database.calc_trades_content_breakdownCalculationsDeprecated wrapper for contributor-level trade content outputs.
Database.calc_spaCalculationsRun a first structural path analysis on one IOT scenario.
Database.calc_embodied_importsCalculationsCalculate embodied imports by destination Region for one indicator.
Database.calc_embodied_exportsCalculationsCalculate embodied exports by origin Region for one indicator.
Database.calc_embodied_net_importsCalculationsCalculate embodied net imports as imports minus exports.
Database.calc_trades_concentrationCalculationsCalculate contributor-region concentration of embodied trade content.
Database.calc_trades_exposureCalculationsCalculate embodied trade-content exposure to one or more contributor Regions.
calc_uCalculationsCalculate the SUT use coefficients matrix u.
calc_UCalculationsCalculate the SUT use flows matrix U.
calc_sCalculationsCalculate the SUT supply coefficients matrix s under IT or PT.
calc_SCalculationsCalculate the SUT supply flows matrix S under IT or PT.
calc_cCalculationsCalculate the SUT product-mix matrix c for product-based technology.
calc_XaCalculationsCalculate SUT activity production Xa from supply flows and final demand.
calc_XcCalculationsCalculate SUT commodity production Xc from use flows and final demand.
calc_wccCalculationsCalculate the SUT commodity-to-commodity Leontief block wcc.
calc_wcaCalculationsCalculate the SUT commodity-to-activity Leontief block wca.
calc_wacCalculationsCalculate the SUT activity-to-commodity Leontief block wac.
calc_waaCalculationsCalculate the SUT activity-to-activity Leontief block waa.
calc_buCalculationsCalculate the SUT use direct-output coefficients bu.
calc_bsCalculationsCalculate the SUT supply direct-output coefficients bs.
calc_gccCalculationsCalculate the SUT Ghosh block gcc.
calc_gcaCalculationsCalculate the SUT Ghosh block gca.
calc_gacCalculationsCalculate the SUT Ghosh block gac.
calc_gaaCalculationsCalculate the SUT Ghosh block gaa.
calc_paCalculationsCalculate the SUT activity price index pa.
calc_pcCalculationsCalculate the SUT commodity price index pc.
calc_XCalculationsCalculate the X total production vector from Z and Y.
calc_zCalculationsCalculate the z intersectoral transaction coefficients matrix.
calc_ZCalculationsCalculate the Z intersectoral transaction flows matrix.
calc_wCalculationsCalculate the w Leontief inverse matrix.
calc_X_from_zCalculationsCalculate the X total production vector directly from z and Y.
calc_X_from_wCalculationsCalculate the X total production vector from w and Y.
calc_vCalculationsCalculate the v value added coefficients matrix.
calc_VCalculationsCalculate the V value added transaction flows matrix.
calc_eCalculationsCalculate the e environmental transaction coefficients matrix.
calc_ECalculationsCalculate the E environmental transaction flows matrix.
calc_mCalculationsCalculate the m total (direct+indirect) value added coefficients matrix.
calc_m_from_zCalculationsCalculate the m total (direct+indirect) value added coefficients matrix.
calc_MCalculationsCalculate the M total (direct+indirect) value added transaction matrix.
calc_fCalculationsCalculate the f total (direct+indirect) environmental transaction coefficients matrix.
calc_f_from_zCalculationsCalculate the f total (direct+indirect) environmental transaction coefficients matrix.
calc_FCalculationsCalculate the F total (direct+indirect) environmental transaction flows matrix.
calc_pCalculationsCalculate the p price index vector from v and w.
calc_p_from_zCalculationsCalculate the p price index vector directly from v and z.
calc_bCalculationsCalculate the b intersectoral transaction direct-output coefficients matrix.
calc_gCalculationsCalculate the g Ghosh coefficients matrix.
calc_yCalculationsNormalize the Y final demand matrix by its grand total.
calc_f_disCalculationsCalculate a diagonalized representation of f.
calc_VaCalculationsCalculate the Va activity-side value added flows matrix.
calc_VcCalculationsCalculate the Vc commodity-side value added flows matrix.
calc_vaCalculationsCalculate the va activity-side value added coefficients matrix.
calc_vcCalculationsCalculate the vc commodity-side value added coefficients matrix.
calc_EaCalculationsCalculate the Ea activity-side environmental flows matrix.
calc_EcCalculationsCalculate the Ec commodity-side environmental flows matrix.
calc_eaCalculationsCalculate the ea activity-side environmental coefficients matrix.
calc_ecCalculationsCalculate the ec commodity-side environmental coefficients matrix.
calc_maCalculationsCalculate the ma activity-side total value added coefficients matrix.
calc_mcCalculationsCalculate the mc commodity-side total value added coefficients matrix.
calc_MaCalculationsCalculate the Ma activity-side total value added flows matrix.
calc_McCalculationsCalculate the Mc commodity-side total value added flows matrix.
calc_faCalculationsCalculate the fa activity-side total environmental coefficients matrix.
calc_fcCalculationsCalculate the fc commodity-side total environmental coefficients matrix.
calc_FaCalculationsCalculate the Fa activity-side total environmental flows matrix.
calc_FcCalculationsCalculate the Fc commodity-side total environmental flows matrix.
CoreModel.f_exCalculationsReturn exploded environmental multiplier contributions for IOT.
CoreModel.f_ex_allCalculationsExploded satellite footprints (IOT, all accounts, baseline).
CoreModel.fa_exCalculationsReturn activity-side exploded environmental multipliers for SUT.
CoreModel.fa_ex_allCalculationsActivity-side exploded satellite footprints (SUT, all accounts, baseline).
CoreModel.fc_exCalculationsReturn commodity-side exploded environmental multipliers for SUT.
CoreModel.fc_ex_allCalculationsCommodity-side exploded satellite footprints (SUT, all accounts, baseline).
CoreModel.m_exCalculationsReturn exploded value-added multipliers for IOT: diag(v) @ w.
CoreModel.m_ex_allCalculationsExploded value-added multipliers (IOT, all factors, baseline).
CoreModel.ma_exCalculationsReturn activity-side exploded value-added multipliers for SUT.
CoreModel.ma_ex_allCalculationsActivity-side exploded value-added multipliers (SUT, all factors, baseline).
CoreModel.mc_exCalculationsReturn commodity-side exploded value-added multipliers for SUT.
CoreModel.mc_ex_allCalculationsCommodity-side exploded value-added multipliers (SUT, all factors, baseline).
CoreModel.p_exCalculationsReturn exploded price-index contributions for IOT.
CoreModel.p_ex_allCalculationsExploded price-index contributions (IOT, baseline).
CoreModel.pa_exCalculationsReturn activity-side exploded price-index contributions for SUT.
CoreModel.pa_ex_allCalculationsActivity-side exploded price-index contributions (SUT, baseline).
CoreModel.pc_exCalculationsReturn commodity-side exploded price-index contributions for SUT.
CoreModel.pc_ex_allCalculationsCommodity-side exploded price-index contributions (SUT, baseline).
Database.aggregateTransformationsAggregate one or more classification levels in the database.
Database.add_extensionsTransformationsAdd new extensions to value added or satellite accounts.
Database.keep_extensionsTransformationsKeep only the selected satellite accounts in every scenario.
Database.add_sectorsTransformationsApply the add-sectors workbook to the selected scenario.
Database.rasTransformationsBalance the Z block of one IOT scenario with the RAS method.
Database.to_iotTransformationsTransform a SUT database into an IOT database.
Database.to_region_subsetTransformationsKeep one explicit region subset and externalize the remaining regions.
Database.to_single_regionTransformationsExtract one region from a multi-regional database.
Database.to_chenery_mosesTransformationsTransform an Isard SUT into a Chenery-Moses SUT.
Database.pool_tradeTransformationsPool the trade of selected commodities behind one pass-through layer.
Database.change_assumptionTransformationsChange the structural SUT technology assumption.
Database.update_supply_mixTransformationsUpdate one regional supply mix in the selected scenario.
Database.update_trade_mixTransformationsUpdate the regional sourcing mix of one traded item per destination market.
Database.get_mixTransformationsReturn one region-by-sector production mix from X.
Database.update_supply_mix_iotTransformationsIOT-only alias for :meth:`update_supply_mix`, kept for backward compatibility.
Database.update_mix_iotTransformationsBackward-compatible alias for :meth:`update_supply_mix_iot`.
Database.clone_scenarioTransformationsClone an existing scenario into a new scenario name.
Database.rename_scenarioTransformationsRename one existing scenario.
Database.rename_baseline_scenarioTransformationsChange the public name exposed for the baseline scenario.
Database.update_scenariosTransformationsReplace selected stored matrices in an existing scenario.
Database.shock_calcTransformationsApply shocks to coefficients or demand and store the result as a scenario.
Database.reset_to_flowsTransformationsReset a scenario so only flow-side matrices remain materialized.
Database.reset_to_coefficientsTransformationsReset a scenario so only coefficient-side matrices remain materialized.
Database.set_clustersTransformationsPersist reusable shock clusters on the database.
Database.add_clusterTransformationsAdd or replace one stored shock cluster.
Database.clear_clustersTransformationsRemove all stored shock clusters from the database.
Database.replace_units_nameTransformationsRename unit labels inside one unit table without touching matrix data.
Database.build_new_instanceTransformationsBuild a new database whose baseline is the selected scenario.
Database.exportExportsExport selected matrices as flat, matrix-specific files.
Database.to_excelExportsExport one scenario to the historical MARIO Excel format.
Database.to_txtExportsExport one scenario as multiple text or CSV files.
Database.to_parquetExportsExport one scenario as parquet files.
Database.to_pymrioExportsExport an IOT database as a pymrio.IOSystem.
write_template_definitionTemplatesWrite the workbook used to define sets and units before data entry.
write_parse_templateTemplatesWrite one MARIO-ready Excel template from user-defined sets and units.
Database.get_aggregation_excelTemplatesWrite an aggregation template workbook for the selected levels.
Database.get_extensions_excelTemplatesWrite an Excel template for adding extensions to E or V.
Database.get_add_sectors_excelTemplatesWrite the add-sectors workbook template.
Database.get_shock_excelTemplatesWrite an Excel template for defining shocks.
Database.read_aggregated_indexTemplatesLoad aggregation mappings without applying them yet.
Database.read_add_sectors_excelTemplatesRead add-sectors workbook inputs and attach their metadata to the database.
Database.get_inventory_sheetsTemplatesCreate inventory-sheet templates referenced by an add-sectors workbook.
Database.read_inventory_sheetsTemplatesRead and group inventory sheets from an add-sectors workbook.
Database.plotVisualizationBuild one interactive plot from a matrix or a prepared dataframe.
Database.plot_matrixVisualizationDeprecated wrapper around :meth:`plot` for matrix bar plots.
Database.plot_gdpVisualizationDeprecated wrapper for sectoral GDP treemap and sunburst plots.
Database.plot_linkagesVisualizationDeprecated wrapper for plotting linkage indicators.
Database.plot_bubbleVisualizationDeprecated wrapper for a GDP or extension bubble chart.
download_settingsSettingsReturn a copy of the current session settings, optionally exporting YAML.
get_settings_pathSettingsReturn the user configuration file path without creating or loading it.
upload_settingsSettingsReplace settings for this Python process without modifying the package.
reset_settingsSettingsRestore built-in defaults, leaving stored matrices intact.
set_compute_methodSettingsSet the default runtime method used for demand-driven IOT/SUT calculations.
set_linear_solverSettingsSet the default backend used by solve-based demand-driven formulas.
set_linear_strategySettingsSet how MARIO should solve sparse linear systems under compute_method='solve'.
set_singular_policySettingsChoose how solve-based calculations handle singular production systems.
PartialResultWarningSettingsSome coefficients cannot be certified because the system is singular.
set_log_verbositySettingsConfigure MARIO logging verbosity and warning capture.
set_paletteSettingsSet the default discrete palette used by MARIO plots.
slicerSettingsHelps to slice the matrices