Skip to content

Releases: IndEcol/pymrio

TS extract

19 Dec 15:53

Choose a tag to compare

New Features

  • function for extracting data from a time series of mrios (extract_from_mrioseries).

Bugfixes

  • Various smaller bugfixes
  • Argument include_core in load and load_all works as expected

Miscellaneous

  • Improved docstring on the download_exiobase3 function (include all dois)

v0.6.2

01 Jul 20:09

Choose a tag to compare

New Features

  • characterization function accepts list of column names for characterized_name_column

Miscellaneous

  • change to using uv for development environment

    • removed conda environment.yml file
    • setup pyproject.toml with uv dependencies
  • using ruff for formating, removed black and isort

  • using poe as task runner, remove ./format_and_test.sh

v0.6.1

26 Jun 16:05

Choose a tag to compare


v0.6.1 - 20250626


New Features

  • convert functions (ioutil.convert, Extension.convert, pymrio.extension_convert) have a new argument
    reindex which specifies a order of the converted dataframe/extension. It is a wrapper around pandas reindex,
    but also allows to passing of a bridge column name to sort after the order given in the bridge table.
  • we have a logo

Fixes

  • spelling mistakes in docs
  • package data for including classification was missing

Full Changelog: v0.6.0...v0.6.1

Regional spec characterization and more

16 Jun 15:21

Choose a tag to compare

v0.6.0 - 20250616

Breaking Changes

  • The characterize function of the extension object has been reimplemented.
    The updated method generalises the previous approach for region- and sector-specific characterisations.
    It is closely integrated with the general characterize function, enabling characterisation across
    different extensions (refer to the section under New Features).

  • The get_extensions function has a revised signature, introducing two new parameters: names and instance_names.

    • names: Enables filtering of extensions by name (either the .name attribute or instance names).
      It also allows passing the extension itself and can be used to harmonise the names within an extension list.
    • instance_names: When set to False, retrieves the "set names" of the extensions.

    Existing keyword arguments should continue to function with the new signature.

  • The behaviour of remove_extension has been modified. Previously, all extensions were removed if no name was provided.
    Now, all extensions are retained when no name is specified, and a TypeError is raised.
    To remove all extensions, use mrio.remove_extension(mrio.get_extensions()).

  • The concate_extension function has been renamed to extension_concate for consistency with extension_convert and _characterize.

  • The concate_extension argument name has been renamed to new_extension_name.

New Features

  • A new top-level characterize function has been introduced.

  • Extension concatenation functionality is now available as a method of an mrio object.

  • Added functionality to download and parse the 2023 release of OECD IO tables (contributed by @jaimeoliver1, #132).

  • Optional Ghosh implementation for downstream analysis has been added (contributed by @Beckebanze, #136, #146).

    • Equivalent of matrix A for Ghosh (referred to as B in pymrio).
    • The Ghosh inverse (commonly referred to as G in literature).
    • Downstream scope 3 multiplier, M_{down}, such that the sum of M + M_{down} represents the full scope multiplier.
      Here, M is the existing multiplier in pymrio, covering scopes 1, 2, and 3 upstream.
    • A brief addition to the pymrio background documentation introducing the Ghosh model.
    • Tests verifying the functionality of the added features.

    To utilise this feature, pass include_ghosh=True to the calc_all or calc_system calls.

  • Some convenience functions have been added to the MRIO object.

    • sectors ... shortand for mrio.get_sectors()
    • regions ... shorthand for mrio.get_regions()
    • Y_categories ... shorthand for mrio.get_Y_categories()
    • rows ... shorthand for mrio.extension.get_rows()
    • extensions ... shorthand for mrio.get_extensions(instance_names=False)
    • extensions_instance_names ... shorthand for mrio.get_extensions(instance_names=True)
    • DataFrame ... shorthand for mrio.get_dataframe()
  • New "full" tutorial at https://pymrio.readthedocs.io/en/latest/notebooks/full_tutorial.html

Deprecated

  • extension.get_row_data(): This method is deprecated and will be removed in a future version. Use extension.extract() as an alternative.

Miscellaneous

  • Documentation has been updated and restructured.

  • Multiple warnings related to deprecation in pandas have been resolved.

  • Adopted OECD ICIO MRIO column rename to out (contributed by @spjuhel, #160).

  • Fixed warnings regarding regex characters (contributed by @pcorpet, #155).

  • Adopted the Github CI workflows to the newest versions, including (test)PyPI uploads

OECD update and Gosh implementation

12 Apr 10:47

Choose a tag to compare

v0.5.4 - 20240412

  • added functionality to download and parse 2023 release of OECD IO tables (by @jaimeoliver1, #132)

  • Added draft Gosh implementation for downstream analysis (by @Beckebanze , #136)

    • equivalent of A for Ghosh (A* in literature, called As in pymrio)
    • the Ghosh inverse (often referred to G in literature).
    • downstream scope 3 multiplier, M_{down}, such the sum of the M+M_{down} is the full scope multiplier, with M the existing multiplier in pymrio that covers scope 1,2&3 upstream.
    • a short addition to the pymrio background page that introduces the Ghosh model
    • tests that test the functionality of the added functions

zenodo api update

21 Oct 21:12

Choose a tag to compare

v0.5.3 - 20231023

Bugfixes

OECD/EORA fix

15 Aug 13:37

Choose a tag to compare

Small fix for OECD and EORA downloader/parser
Some internal updates

New features

Development

  • Switched to Micromamba in the CI
  • Fixed readthedocs settings

bugfix version numbering

15 Jun 20:33

Choose a tag to compare

small bugfix release to fix version number

move to IndEcol and LGPL

15 Jun 19:56

Choose a tag to compare

Development

Breaking changes

  • dropped support for Python 3.7 and added 3.10 and 3.11
  • License changed to LESSER GNU GENERAL PUBLIC LICENSE v3 (LGPLv3)
  • added pyarrow as requirment

New features

  • Autodownloader for GLORIA MRIO (by @hazimhussein)
  • Support of parquet format for load and save function

Bugfixes

minor classification updates and bugfixes

16 Nov 08:43

Choose a tag to compare

Classifications

  • Added inbuild classification for

    • Test MRIO
    • EXIOBASE 2
    • EXIOBASE 3
  • Method for renaming sectors/regions based on the built in classification

  • Method for aggregating duplicated indexes

Bugfixes

  • F_Y was removed in reset_full - fixed
  • updated deprecated pandas methods - fix #93