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

Get solution for gurobi before exiting enviornment context manager #330

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

dannyopts
Copy link
Contributor

Not quite sure when this regression happened by this is the same fix as in #192, it seems it got lost in a merge at some point.

As discussed in the issue, I wonder if there should be a test that we dont access the model after it is closed, but maybe there is a better way to do this than an explicit test (i.e. make it impossible by a code change)

Closes #329

Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.00%. Comparing base (dd0e54e) to head (4735725).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #330   +/-   ##
=======================================
  Coverage   86.00%   86.00%           
=======================================
  Files          17       17           
  Lines        4209     4209           
  Branches      989      989           
=======================================
  Hits         3620     3620           
  Misses        430      430           
  Partials      159      159           

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

@FabianHofmann
Copy link
Collaborator

thanks @dannyopts

@FabianHofmann FabianHofmann merged commit 7b1ebdc into PyPSA:master Jul 23, 2024
16 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.

0.3.3 release onwards have broken Gurobi solves for large models.
3 participants