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

Fix SwigPtrView.__getattr__ #2259

Merged
merged 5 commits into from
Jan 6, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jan 4, 2024

hasattr didn't work with SwigPtrView, because calling __getattr__ for a missing attribute resulted in a KeyError via __missing__. However, hasattr expects an attribute error in that case.

`hasattr` didn't work with SwigPtrView, because calling `__getattr__` for a missing attribute resulted in a KeyError via `__missing__`. However, hasattr expects an attribute error in that case.
@dweindl dweindl self-assigned this Jan 4, 2024
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a253b17) 76.46% compared to head (d7cc4ab) 76.47%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2259      +/-   ##
===========================================
+ Coverage    76.46%   76.47%   +0.01%     
===========================================
  Files           92       92              
  Lines        14975    14977       +2     
===========================================
+ Hits         11450    11454       +4     
+ Misses        3525     3523       -2     
Flag Coverage Δ
cpp 73.11% <ø> (ø)
cpp_python 37.08% <ø> (ø)
petab 52.90% <66.66%> (-0.01%) ⬇️
python 77.94% <100.00%> (+0.04%) ⬆️
sbmlsuite ?

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

Files Coverage Δ
python/sdist/amici/numpy.py 87.38% <100.00%> (+2.06%) ⬆️

@dweindl dweindl marked this pull request as ready for review January 5, 2024 08:31
@dweindl dweindl requested a review from a team as a code owner January 5, 2024 08:31
@dweindl dweindl merged commit 30ed2f0 into AMICI-dev:develop Jan 6, 2024
19 checks passed
@dweindl dweindl deleted the fix_SwigPtrView_getattr branch January 6, 2024 09:46
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