-
Notifications
You must be signed in to change notification settings - Fork 31
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
Make sympy code optimizations optional #1878
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turns out that applying sympy optimizations as introduced in #1377 is potentially very costly. Therefore, they are disabled by default. They can be enabled by setting `AmiciCxxCodePrinter.optimizations` as shown in the test case.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #1878 +/- ##
===========================================
+ Coverage 75.76% 75.79% +0.03%
===========================================
Files 74 74
Lines 12895 12896 +1
===========================================
+ Hits 9770 9775 +5
+ Misses 3125 3121 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Kudos, SonarCloud Quality Gate passed! |
FFroehlich
approved these changes
Oct 28, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Merged
FFroehlich
added a commit
that referenced
this pull request
Nov 23, 2022
* Fix pandas groupby deprecation warning (#1873) Fixes #1872 * Update reference list (#1874) * Code printing: Use SymPy C99 math optimizations (#1377) for SBML import. Does not currently work with PySB import. Also fixes some argument type issues. Co-authored-by: Daniel Weindl <[email protected]> * PEtab import: Add option for treating fixed parameters as constants (#1877) Makes the changes from #1810 optional, as sometimes users prefer more flexible models. The default remains to treat non-estimated parameters in PEtab as constants in AMICI. Also adds a basic check for loading existing models during PEtab, to see if they are compatible to what was supposed to be imported. Only checks non-constant parameter IDs so far. * Make sympy code optimizations optional (#1878) Turns out that applying sympy optimizations as introduced in #1377 is potentially very costly. Therefore, they are disabled by default. They can be enabled by setting `AmiciCxxCodePrinter.optimizations` as shown in the test case. * Update reference list (#1884) * GHA: update actions (#1885) Fixes some GHA warnings. * Add macos hdf5 header/library paths (#1894) * Doxygen 1.9.5 on RTD (#1889) Older binaries are no longer available. * Code-gen: Fix missing `return` in non-void-returning functions (#1892) ... and set `-Werror` for compiling models in debug mode. * Add operator== for ExpData (#1881) Adds `operator==` for `amici::ExpData` and fixes issues for other `operator==` in case of NaNs in arrays. Closes #1880 * Fix SetuptoolsDeprecationWarning (#1893) Setuptools meanwhile requires listing data directories as subpackages. Fixes #1888. * Dockerfile: Update base image to Ubuntu 22.04 (#1896) * GHA: Pin python version for osx tests (#1891) Fixes #1890. Also: * use homebrew boost version * fix CMake logic for selecting a specific Python version. * Fix `petab_import.import_model(..., compile=False)` failure (#1897) Fixes a bug where amici would fail importing an extension that was never built. * bump version, update changelog * fix changelog * -Wno-error=deprecated-declarations Co-authored-by: Daniel Weindl <[email protected]> Co-authored-by: Lorenzo Contento <[email protected]> Co-authored-by: Daniel Weindl <[email protected]> Co-authored-by: Doresic <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Turns out that applying sympy optimizations as introduced in #1377 is potentially very costly. Therefore, they are disabled by default. They can be enabled by setting
AmiciCxxCodePrinter.optimizations
as shown in the test case.