PyPSA / linopy

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

Polars based LP file writer #291

Closed FabianHofmann closed 1 month ago

FabianHofmann commented 1 month ago

From release notes:

A new memory-efficient and super fast LP file writing method was added which uses the Polars package. It is still in experimental mode but seems to be very promising. Activate it with the io_api="lp-polars" argument in the solve function.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 91.73913% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 89.69%. Comparing base (1962a4e) to head (35859b7).

Files Patch % Lines
linopy/io.py 88.28% 6 Missing and 7 partials :warning:
linopy/common.py 87.75% 3 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #291 +/- ## ========================================== + Coverage 89.35% 89.69% +0.34% ========================================== Files 16 16 Lines 3842 4019 +177 Branches 906 939 +33 ========================================== + Hits 3433 3605 +172 + Misses 283 281 -2 - Partials 126 133 +7 ```

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