PyPSA / linopy

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

fix module not found error highspy #319

Closed michalmarszal closed 2 weeks ago

michalmarszal commented 2 weeks ago

0.3.12 released on pypi.org forces to have highspy installed, without having it added to dependency in pyproject.toml. I do not see point of installing HiGHS when I am using the other solver. This is cased by small import in linopy/io.py:20 which is used just for typing hint

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.95%. Comparing base (82ca73d) to head (0313fda). Report is 8 commits behind head on master.

Files Patch % Lines
linopy/io.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #319 +/- ## ========================================== + Coverage 85.06% 85.95% +0.89% ========================================== Files 17 17 Lines 4197 4202 +5 Branches 987 988 +1 ========================================== + Hits 3570 3612 +42 + Misses 468 431 -37 Partials 159 159 ```

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