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

Proper type annotations for the swig interface #1860

Merged
merged 5 commits into from
Aug 24, 2022
Merged

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Aug 23, 2022

Replaces a big part of the swig-generated C++ annotations by proper Python annotations, so that they can actually be used for type checking.

Replaces a big part of the swig-generated C++ annotations by proper Python annotations, so that they can actually be used for type checking.
@dweindl dweindl requested a review from FFroehlich August 23, 2022 14:42
@codecov
Copy link

codecov bot commented Aug 23, 2022

Codecov Report

Merging #1860 (f88f5ca) into develop (908d940) will decrease coverage by 0.02%.
The diff coverage is 6.25%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1860      +/-   ##
===========================================
- Coverage    76.18%   76.16%   -0.03%     
===========================================
  Files           74       74              
  Lines        12864    12876      +12     
===========================================
+ Hits          9801     9807       +6     
- Misses        3063     3069       +6     
Flag Coverage Δ
cpp 72.81% <ø> (+0.07%) ⬆️
petab 59.04% <6.25%> (-0.16%) ⬇️
python 68.69% <6.25%> (-0.19%) ⬇️

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

Impacted Files Coverage Δ
python/amici/swig.py 32.20% <6.25%> (-8.23%) ⬇️
src/exception.cpp 75.67% <0.00%> (ø)
src/solver_cvodes.cpp 70.06% <0.00%> (ø)
src/amici.cpp 72.53% <0.00%> (+4.22%) ⬆️

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

6.2% 6.2% Coverage
0.0% 0.0% Duplication

Copy link
Member

@FFroehlich FFroehlich left a comment

Choose a reason for hiding this comment

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

Neat! 👍

@dweindl dweindl merged commit ad9ebdf into develop Aug 24, 2022
@dweindl dweindl deleted the swig_typehints branch August 24, 2022 07:45
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