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

SwigPtrView: look up unhandled attributes in _swigptr #2405

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Apr 19, 2024

So far, only the explicitly listed attributes are accessible directly via SwigPtrView. Things like ReturnData.ny are only available through ReturnDataView.ptr.ny, which is inconvenient. Let's just look all non-private attributes that are not already explicitly handled by SwigPtrView on _swigptr and return them as is.

So far, only the explicitly listed attributes are accessible directly via SwigPtrView.
Things like ReturnData.ny are only available through ReturnDataView.ptr.ny, which is inconvenient.
Let's just look all non-private attributes that are not already explicitly handled by SwigPtrView
on _swigptr and return them as is.
@dweindl dweindl requested a review from a team as a code owner April 19, 2024 07:54
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 77.69%. Comparing base (51c8cad) to head (5600235).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2405   +/-   ##
========================================
  Coverage    77.69%   77.69%           
========================================
  Files          324      324           
  Lines        20875    20875           
  Branches      1458     1458           
========================================
  Hits         16219    16219           
  Misses        4653     4653           
  Partials         3        3           
Flag Coverage Δ
cpp 73.45% <87.50%> (ø)
cpp_python 34.21% <50.00%> (-0.01%) ⬇️
petab 36.81% <50.00%> (-0.01%) ⬇️
python 72.23% <87.50%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
python/sdist/amici/numpy.py 87.61% <100.00%> (ø)
python/sdist/amici/plotting.py 0.00% <0.00%> (ø)

@dweindl dweindl self-assigned this Apr 19, 2024
@dweindl dweindl added this pull request to the merge queue Apr 19, 2024
Merged via the queue into AMICI-dev:develop with commit 28b2611 Apr 19, 2024
20 checks passed
@dweindl dweindl deleted the swigptrview_lookup branch April 20, 2024 05:57
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