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 uncaught C++ exceptions crashing Python #2484

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jul 10, 2024

Catch all exceptions in omp parallel regions.

Fixes #2478.

@dweindl dweindl mentioned this pull request Jul 10, 2024
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.70%. Comparing base (42dc328) to head (84a3eb9).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2484      +/-   ##
===========================================
+ Coverage    77.65%   77.70%   +0.04%     
===========================================
  Files          324      324              
  Lines        20933    20933              
  Branches      1464     1464              
===========================================
+ Hits         16256    16265       +9     
+ Misses        4674     4665       -9     
  Partials         3        3              
Flag Coverage Δ
cpp 73.46% <ø> (+0.04%) ⬆️
cpp_python 34.08% <ø> (ø)
petab 36.65% <ø> (ø)
python 72.25% <ø> (+0.05%) ⬆️

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

Files Coverage Δ
src/amici.cpp 81.41% <ø> (ø)

... and 4 files with indirect coverage changes

@dweindl dweindl changed the title Test swig exception-handling Fix uncaught C++ exceptions crashing Python Jul 10, 2024
@dweindl dweindl marked this pull request as ready for review July 10, 2024 16:45
@dweindl dweindl requested a review from a team as a code owner July 10, 2024 16:45
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.

👍

@dweindl dweindl merged commit 954fe8b into AMICI-dev:develop Jul 10, 2024
20 checks passed
@dweindl dweindl deleted the test_exceptions branch July 10, 2024 21:10
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