Comments (3)
A student of my investigated the differente and reported that, following the notation by Kitzes, my calculation and the PyMrio calculation produce the same results except of the last step where the total intensities (F) are multiplied with the final demand of a country (y). If investigated correctly, I use np.dot()
whereas PyMRIO uses *
. I didn't find time to look it up myself yet.
https://numpy.org/doc/stable/reference/generated/numpy.dot.html
"If a is an N-D array and b is a 1-D array, it is a sum product over the last axis of a and b."
from pymrio.
Hi,
When I am correct you are back where you started from with
source_green = eora.eora_green.D_cba.DEU.sum(axis = 1)
you need to sum over "axis=0".
see https://pymrio.readthedocs.io/en/latest/notebooks/buildflowmatrix.html
in particular around code cell 9
from pymrio.
Feel free to reopen if it did not solve the issue
from pymrio.
Related Issues (20)
- explain the small test mrio included in pymrio HOT 1
- bilateral trade and associated calculations HOT 2
- calc_accounts - changed to named tuple and provide function for only giving a new Y
- add a functions to rename exiobase and wiod sectors
- env name wrong in actions
- WIOD webpage structure changed HOT 2
- Calculating the GHG footprint per EUR of manufacturing - based on production per sector
- OECD ICIO 2021 Release HOT 6
- Terminlogy updates
- fix spelling in req file name
- remove all 3.7, add and test 3.10 HOT 1
- Characterized impacts of final demand not parsed properly as `F_Y` in EXIOBASE3 HOT 1
- Meaning of WE, WL, WE, WF and WM HOT 2
- Address FutureWarning from pandas in parser.
- Remove region from MRIO system? HOT 2
- Wrong final demands of utilities in exiobase 3.8.1 and 3.8.2 HOT 2
- new home and licence change HOT 1
- Performing a simple disaggregation
- Correct handling of divisions by zero in calculating matrix A HOT 1
- Monetary intensity factor per NACE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymrio.