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

Proposed solution to bug#745 #766

Merged
merged 24 commits into from
Jun 17, 2024
Merged

Conversation

ParasPuneetSingh
Copy link
Collaborator

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

The comment edit needs to be performed in SciMLBase and other solver packages.
Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.

Project coverage is 0.06%. Comparing base (f5ae5b0) to head (30c40df).
Report is 47 commits behind head on master.

Current head 30c40df differs from pull request most recent head 79eee22

Please upload reports for the commit 79eee22 to get more accurate results.

Files Patch % Lines
src/utils.jl 0.00% 31 Missing ⚠️
src/lbfgsb.jl 0.00% 3 Missing ⚠️
lib/OptimizationBBO/src/OptimizationBBO.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #766       +/-   ##
==========================================
- Coverage   68.51%   0.06%   -68.46%     
==========================================
  Files          22      22               
  Lines        1607    1613        +6     
==========================================
- Hits         1101       1     -1100     
- Misses        506    1612     +1106     

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

Updated convert function in BBO.
Two functions and a dictionary were added for RetCode handling.
src/utils.jl Outdated Show resolved Hide resolved
src/utils.jl Outdated Show resolved Hide resolved
Removed redundant Logging of RetCode types.
Copy link
Member

@Vaibhavdixit02 Vaibhavdixit02 left a comment

Choose a reason for hiding this comment

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

This approach is pretty neat, I like that you decided to unify the handling. We should use this for all such conversions to retcode in all the wrapper packages.

Changed convert function name to deduce_retcode and the deduce_retcode function to deduce_retcode_from_string.
Changed the convert function to deduce_retcode for retcode generation.
Retcode function for symbol and string separated.
In the deduce retcode function no need to pass RetCode::T.
Copy link
Member

@Vaibhavdixit02 Vaibhavdixit02 left a comment

Choose a reason for hiding this comment

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

Looks good now. Can you also use it for some other solvers

src/utils.jl Outdated Show resolved Hide resolved
src/utils.jl Outdated Show resolved Hide resolved
src/utils.jl Outdated Show resolved Hide resolved
@SciML SciML locked and limited conversation to collaborators Jun 16, 2024
@SciML SciML unlocked this conversation Jun 16, 2024
@Vaibhavdixit02 Vaibhavdixit02 merged commit 8955aa3 into SciML:master Jun 17, 2024
22 of 42 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.

2 participants