IndEcol / pymrio

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

IO Balance function #125

Open MohamedhBadr opened 9 months ago

MohamedhBadr commented 9 months ago

A function that checks the MRIO balance by:

1- Making sure that the matrix dimensions are compatible 2- Checks if total inputs = total outputs 3- Checks sector/product balance (sector/product inputs = sector/product outputs)

MohamedhBadr commented 8 months ago

Added new commits, fixed issues with the IO balance function.

konstantinstadler commented 7 months ago

report df (think about return type, perhaps dict?) checked_parameter, balanced Z-VA = Z-FD, true/false

once this is done, go to mrio_system - IOSystem and add def is_balanced(self, VA, a_tol, r_tol, report) (all except the one available in self) io_math.is_balanced(Z=self.Z, VA=VA, ...)

write pytest function as well