Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward Mosek log to stdout #305

Merged
merged 6 commits into from
Jul 9, 2024
Merged

Conversation

aszekMosek
Copy link
Contributor

The documentation for Model.solve() says

log_fn (path_like, optional) – Path of the logging file which is written out during the process. The default None results in the no log file, hence all solver outputs are piped to the python repl.

This change makes the Mosek behavior consistent with the second part of the description, that is The default None results in ... all solver outputs are piped to the python repl. Currently in Mosek if log_fn is None then nothing gets printed.

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

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

Project coverage is 86.70%. Comparing base (07aa9f6) to head (4e85880).
Report is 6 commits behind head on master.

Files Patch % Lines
linopy/solvers.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #305      +/-   ##
==========================================
- Coverage   89.72%   86.70%   -3.02%     
==========================================
  Files          16       16              
  Lines        4037     4038       +1     
  Branches      942      943       +1     
==========================================
- Hits         3622     3501     -121     
- Misses        282      413     +131     
+ Partials      133      124       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

linopy/solvers.py Outdated Show resolved Hide resolved
@FabianHofmann FabianHofmann merged commit a2e556d into PyPSA:master Jul 9, 2024
9 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants