PyPSA / linopy

Linear optimization with N-D labeled arrays in Python
https://linopy.readthedocs.io
MIT License
155 stars 43 forks source link

set fill value to 0.0 to prevent cohersion to int for matrices.c #201

Closed dannyopts closed 8 months ago

dannyopts commented 8 months ago

Fixes https://github.com/PyPSA/linopy/issues/200

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b437f93) 89.17% compared to head (b4c1c25) 87.68%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #201 +/- ## ========================================== - Coverage 89.17% 87.68% -1.49% ========================================== Files 15 15 Lines 3298 3298 Branches 757 757 ========================================== - Hits 2941 2892 -49 - Misses 248 299 +51 + Partials 109 107 -2 ``` | [Files](https://app.codecov.io/gh/PyPSA/linopy/pull/201?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PyPSA) | Coverage Δ | | |---|---|---| | [linopy/matrices.py](https://app.codecov.io/gh/PyPSA/linopy/pull/201?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PyPSA#diff-bGlub3B5L21hdHJpY2VzLnB5) | `100.00% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/PyPSA/linopy/pull/201/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PyPSA)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.