IndEcol / pymrio

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

Divide by zero error in iomath.py #15

Closed danielhorengreenford closed 8 years ago

danielhorengreenford commented 8 years ago

Issue on line 109 in iomath.py

I changed: recix[recix==np.inf]=0

to: if x == 0: recix = 0 else: recix = 1/x

since it was returning a trying to divide by zero error that stopped computation when parsing in EXIOPOL pxp 2.2.2

konstantinstadler commented 8 years ago

Fixed in version 0.2.2.2