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

Print names of events and current stage #769

Merged
merged 9 commits into from
Dec 30, 2023
Merged

Print names of events and current stage #769

merged 9 commits into from
Dec 30, 2023

Conversation

Joao-Dionisio
Copy link
Collaborator

Using model.getStage() we get an integer, not very informative. We now have model.getStageName(), which gives us the name of the stage. Same for events. This does not solve #766, as directly trying to print an event should still give an error. Similar to PR #484.

Draft because I'm sure there are better ways to do this.

Copy link
Member

@mmghannam mmghannam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks João for the useful contribution!

src/pyscipopt/scip.pxi Show resolved Hide resolved
src/pyscipopt/scip.pxi Outdated Show resolved Hide resolved
@Joao-Dionisio Joao-Dionisio marked this pull request as ready for review December 27, 2023 13:27
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (3861380) 61.55% compared to head (1c38f31) 61.68%.

Files Patch % Lines
src/pyscipopt/scip.pxi 83.33% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #769      +/-   ##
==========================================
+ Coverage   61.55%   61.68%   +0.13%     
==========================================
  Files          16       16              
  Lines        3238     3255      +17     
==========================================
+ Hits         1993     2008      +15     
- Misses       1245     1247       +2     

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

@mmghannam mmghannam merged commit a9d4693 into master Dec 30, 2023
3 checks passed
@Joao-Dionisio Joao-Dionisio deleted the print-names branch January 11, 2024 14:06
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