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

More refactoring of the C API, removing unnecessary fields where possible #274

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

odow
Copy link
Member

@odow odow commented Nov 29, 2023

No description provided.

@@ -580,33 +574,37 @@ function _newpt_wrapper(
@_checked KN_get_number_cons(model, nc)
x = unsafe_wrap(Array, ptr_x, nx[])
lambda = unsafe_wrap(Array, ptr_lambda, nx[] + nc[])
# TODO: should `model` arugment be `ptr_model`?
return model.newpt_callback(model, x, lambda, model.newpt_user_data)
Copy link
Member Author

Choose a reason for hiding this comment

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

Now that I understand the API much better, I'm not sure that (model, is the right argument here.

cc @frapac because the current behavior seems pretty intentional: #143

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

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

Comparison is base (baf3502) 84.61% compared to head (ed12c7e) 84.53%.

Files Patch % Lines
src/C_wrapper.jl 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
- Coverage   84.61%   84.53%   -0.08%     
==========================================
  Files           3        3              
  Lines        1001      996       -5     
==========================================
- Hits          847      842       -5     
  Misses        154      154              

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

@odow odow merged commit e18cd1c into master Nov 29, 2023
4 of 5 checks passed
@odow odow deleted the od/more-refactoring branch November 29, 2023 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant