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

Changed Hx Value error to Analysis error for 3 instances. #62

Merged
merged 7 commits into from
Mar 5, 2024

Conversation

mariejvaucher
Copy link
Contributor

@mariejvaucher mariejvaucher commented Feb 13, 2024

Purpose

Previously the script was raising a Python ValueError that wasn't caught by OM solvers. Now the error is an OM Analysis Error which allows the solver to continue optimization and also gives details about which value is wrong and why.

Type of change

  • Bugfix (non-breaking change which fixes an issue)

Testing

Added new tests

Checklist

Put an x in the boxes that apply.

  • I have run unit and regression tests which pass locally with my changes
  • I have added new tests that prove my fix is effective or that my feature works
  • I have added necessary documentation

@eytanadler eytanadler requested review from eytanadler and removed request for kanekosh and bernardopacini February 13, 2024 16:56
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.98%. Comparing base (773de3a) to head (32d4897).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   79.95%   79.98%   +0.03%     
==========================================
  Files          85       85              
  Lines        9300     9300              
==========================================
+ Hits         7436     7439       +3     
+ Misses       1864     1861       -3     

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

Copy link
Collaborator

@eytanadler eytanadler left a comment

Choose a reason for hiding this comment

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

Thank you Marie! Let's get #61 merged first, then we can merge this one and make a new release for version 1.1.2.

Copy link
Contributor

@kanekosh kanekosh left a comment

Choose a reason for hiding this comment

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

@mariejvaucher Could you fix the conflicts in the import lines? Other than that, looks good to me.

Copy link
Collaborator

@eytanadler eytanadler left a comment

Choose a reason for hiding this comment

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

Thank you @mariejvaucher!

@eytanadler eytanadler merged commit 5f2cb40 into mdolab:main Mar 5, 2024
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.

None yet

3 participants