Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GLORIA parser in tools.ioparser #139

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

francis-barre
Copy link

@francis-barre francis-barre commented Apr 26, 2024

fix #128

A parser for GLORIA was coded following Issue #128 , 3 functions were coded, one to read GLORIA in its original SUT structure, one (__construct_IO) to construct the IO matrices from the SUT ones, and a final one (the parse_gloria that users should call) that uses the two previous ones and returns an IOSystem.

The __construct_IO is quite useless for GLORIA as I came to realize that the supply matrix in GLORIA is diagonal (commodities and industries match one to one), but it can be used in the future to parse other SUT databases into pymrio. The __construct_IO function can build the IO matrices from the SUT using one of the four models described in Miller Blair 2009.

I also added a (very) simple test and a mock gloria, it only tests that parsing gloria with all possible parameters works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Developing a parser for the GLORIA MRIO database
1 participant