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 extraction of common subexpressions #1865

Merged
merged 3 commits into from
Sep 10, 2022
Merged

Fix extraction of common subexpressions #1865

merged 3 commits into from
Sep 10, 2022

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Sep 10, 2022

Got broken in #1859 (cc5f7cc#diff-44c38f8a81d42beabd5ab6dfd5db9a33bda06ded71f7cbfa5a47a7a1b8fd824eL3028), so that AMICI_EXTRACT_CSE=1 had no effect.

That change also broke the use of human-readable lhs symbols in generated code. Also fixed here.

Added tests for both.

Got broken #1859 (cc5f7cc#diff-44c38f8a81d42beabd5ab6dfd5db9a33bda06ded71f7cbfa5a47a7a1b8fd824eL3028), so that `AMICI_EXTRACT_CSE=1` had no effect.

That change also broke the use of human-readable lhs symbols in generated code. Also fixed here.

Added tests for both.
@dweindl dweindl requested a review from FFroehlich September 10, 2022 09:19
@codecov
Copy link

codecov bot commented Sep 10, 2022

Codecov Report

Merging #1865 (08ec280) into develop (b93e2ce) will increase coverage by 0.25%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1865      +/-   ##
===========================================
+ Coverage    76.12%   76.38%   +0.25%     
===========================================
  Files           74       74              
  Lines        12863    12868       +5     
===========================================
+ Hits          9792     9829      +37     
+ Misses        3071     3039      -32     
Flag Coverage Δ
cpp 72.81% <ø> (ø)
petab 59.08% <71.42%> (+0.15%) ⬆️
python 69.32% <100.00%> (+0.76%) ⬆️
sbmlsuite 86.71% <100.00%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
python/amici/cxxcodeprinter.py 89.53% <100.00%> (+22.09%) ⬆️
python/amici/ode_export.py 91.91% <100.00%> (+0.04%) ⬆️
src/sundials_matrix_wrapper.cpp 80.61% <0.00%> (ø)
python/amici/gradient_check.py 96.84% <0.00%> (+13.68%) ⬆️

@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

24.1% 24.1% Coverage
0.0% 0.0% Duplication

@dweindl dweindl mentioned this pull request Sep 10, 2022
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 81f8b43 into develop Sep 10, 2022
@dweindl dweindl deleted the fix_cse branch September 10, 2022 13:55
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