pypsa-meets-earth / pypsa-earth-sec

GNU General Public License v3.0
19 stars 16 forks source link

fix: ZeroDivision Error #288

Closed doneachh closed 4 months ago

doneachh commented 4 months ago

Closes # (if applicable).

Changes proposed in this Pull Request

implemented division through zero check

Checklist

doneachh commented 4 months ago

Hi @davide-f ! :) Can you please review my bugfix here? The error appears if there is data missing in the unsd data. As there is no data, we assume it to be 0 --> In the division we get the ZeroDivision Error.