IndEcol / pymrio

Multi-Regional Input-Output Analysis in Python.
http://pymrio.readthedocs.io/en/latest/
Other
155 stars 71 forks source link

Oecd 2021 #88

Closed jaimeoliver1 closed 2 years ago

jaimeoliver1 commented 2 years ago

Hi,

Here's a PR for the new release of the OECD Input-Output database from 2021.

This PR is linked to the following issue: https://github.com/konstantinstadler/pymrio/issues/86

Please let me know if there are any changes to be added.

Thanks!

closes#86

konstantinstadler commented 2 years ago

Thats amazing 👍🏽 , thanks a lot! I just realized that I need to allow you to run the test pipelines here. Seems like the functionality works, but there are some formatting issues (I am using black for code formating). Let me know if you want to fix that, otherwise I will do at one point

jaimeoliver1 commented 2 years ago

Added black formatting changes

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2070227361


Totals Coverage Status
Change from base Build 1697622014: 0.0%
Covered Lines: 1923
Relevant Lines: 2143

💛 - Coveralls
konstantinstadler commented 2 years ago

Perfect, thanks a lot

lara-veylit commented 1 year ago

Hey! I am trying to use the iodownloader function to get the new OECD data (v2021) and am having an error crop up which I think is due to the new data formatting (i.e. range versus per year). Thank you in advance for your help!

274 raise ValueError( 275 "Specified datafile for {} () not found in the current" 276 "OECD ICIO webpage.\n" 277 "Perhaps filenames have been changed - update OECD_CONFIG " 278 "to the new filenames".format(yy, url_tocheck) 279 ) 281 filename = "ICIO" + version.lstrip("v") + "" + yy + ".zip" 282 storage_file = os.path.join(storage_folder, filename)

**