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

fix tqdm output breaking redispatch simulation on windows #491

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

maurerle
Copy link
Member

starting with linopy 0.4.3 it is possible to suppress the tqdm log output of linopy

This caused an issue seen by @Manish-Khanra as tqdm on windows did not like the plumbing of the output and error stream which is done by us to suppress all stdout output from the network optimize call.

I would leave this as a draft until PyPSA/linopy#375 is merged and released

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.48%. Comparing base (fe85a55) to head (5cca65b).
Report is 37 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #491   +/-   ##
=======================================
  Coverage   76.48%   76.48%           
=======================================
  Files          49       49           
  Lines        6319     6319           
=======================================
  Hits         4833     4833           
  Misses       1486     1486           
Flag Coverage Δ
pytest 76.48% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


🚨 Try these New Features:

@maurerle maurerle changed the title fix tqdm output breaking simulation on windows fix tqdm output breaking redispatch simulation on windows Nov 21, 2024
@maurerle maurerle force-pushed the suppress_tqdm_linopy branch from cad6ea8 to 5cca65b Compare November 21, 2024 13:38
@maurerle maurerle marked this pull request as ready for review November 21, 2024 13:38
@maurerle maurerle merged commit caa46f7 into main Nov 21, 2024
9 checks passed
@maurerle maurerle deleted the suppress_tqdm_linopy branch November 21, 2024 14:42
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.

2 participants