Releases: IndEcol/pymrio
TS extract
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
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
v0.6.1 - 20250626
New Features
convertfunctions (ioutil.convert, Extension.convert, pymrio.extension_convert) have a new argument
reindexwhich 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
v0.6.0 - 20250616
Breaking Changes
-
The
characterizefunction 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 generalcharacterizefunction, enabling characterisation across
different extensions (refer to the section under New Features). -
The
get_extensionsfunction has a revised signature, introducing two new parameters:namesandinstance_names.names: Enables filtering of extensions by name (either the.nameattribute 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 toFalse, retrieves the "set names" of the extensions.
Existing keyword arguments should continue to function with the new signature.
-
The behaviour of
remove_extensionhas been modified. Previously, all extensions were removed if no name was provided.
Now, all extensions are retained when no name is specified, and aTypeErroris raised.
To remove all extensions, usemrio.remove_extension(mrio.get_extensions()). -
The
concate_extensionfunction has been renamed toextension_concatefor consistency withextension_convertand_characterize. -
The
concate_extensionargumentnamehas been renamed tonew_extension_name.
New Features
-
A new top-level
characterizefunction has been introduced. -
Extension concatenation functionality is now available as a method of an
mrioobject. -
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
Afor Ghosh (referred to asBin pymrio). - The Ghosh inverse (commonly referred to as
Gin literature). - Downstream scope 3 multiplier,
M_{down}, such that the sum ofM + M_{down}represents the full scope multiplier.
Here,Mis 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=Trueto thecalc_allorcalc_systemcalls. - Equivalent of matrix
-
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()
- sectors ... shortand for
-
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. Useextension.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
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
v0.5.3 - 20231023
Bugfixes
- Fix downloader for new Zenodo API (by @hazimhussein)
- Fix coverage report (by @konstantinstadler)
OECD/EORA fix
Small fix for OECD and EORA downloader/parser
Some internal updates
New features
- OECD bundle download (by @hazimhussein) - see https://pymrio.readthedocs.io/en/latest/notebooks/autodownload.html#OECD-download
- Fix EORA26 parsing (by @hazimhussein)
Development
- Switched to Micromamba in the CI
- Fixed readthedocs settings
bugfix version numbering
small bugfix release to fix version number
move to IndEcol and LGPL
Development
- Move the repository to the public IndEcol organization on GitHub: https://github.com/IndEcol/pymrio
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
- Fix Eora downloader (by @hazimhussein)
minor classification updates and bugfixes
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