IndEcol / pymrio

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

Zero everywhere in D_cba #73

Closed andthewatersays closed 3 years ago

andthewatersays commented 3 years ago

Hello,

First, thank you for all your packages. It is very useful to understand and practice MRIO. When I start to handle packages, I have a problem. I have modified the Y matrix in order to correspond with my study case. Once I launch the .calc_all(), I want to see the results with the D_cba matrix, but all the fiels are equal to zeros ... I do not know why because my final demande is not null. But when I am looking for the D_cba_reg for example, I have results (even if I put zero for the final demande for the region 'AT', I have some results for this region). I do not understand why too.

If you have some suggestions about what I could miss or misunderstood, I will take it !

Thanks !

konstantinstadler commented 3 years ago

Hi,

andthewatersays commented 3 years ago

Thanks for your answer.

Ok, I will try to work with the test in order to understand why there is a problem before asking other technical questions. But I have one question (which could look basic, but I would like to be sure that I modify right things) : the matrix that I have to modify in order to enter my data, it is the Y matrix, is it not ?

konstantinstadler commented 3 years ago

Yes. Either in place or you assign it back with IO.Y=Y

On 26 June 2021 16:16:01 CEST, andthewatersays @.***> wrote:

Thanks for your answer.

Ok, I will try to work with the test in order to understand why there is a problem before asking other technical questions. But I have one question (which could look basic, but I would like to be sure that I modify right things) : the matrix that I have to modify in order to enter my data, it is the Y matrix, is it not ?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/konstantinstadler/pymrio/issues/73#issuecomment-869009718

andthewatersays commented 3 years ago

I think that I found what is going on. Indeed, before launched the first calculation with _.calcall(), I initialized the Y matrix with zero everywhere. I launched _.calcall() and I had the Dcba matrix null (and it is normal). But just after I modified the Y matrix and I launched again the .calcall() (this is my error I think) and the Dcba matrix was still null. Because I tested modifying the Y matrix before launching .calcall() and in this case, it works directly. So I think that the fact initializing the Y matrix was the problem, as if there is just only version possible of the Y matrix by simulation.

I hope I will be clear with my poor English.

konstantinstadler commented 3 years ago

ok, so thats solved then? feel free to reopen the issue if needed ;-)