-
Notifications
You must be signed in to change notification settings - Fork 33
Piecewise to heaviside #1352
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
Merged
Merged
Piecewise to heaviside #1352
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
c46d57d
parse piecewise into heaviside functions
paulstapor f27004f
Add Events as model quantity, parse Heavisides slightly differently
paulstapor c2e7543
bugfix
paulstapor 4ffa4ca
rename symbols of root to h and switch order of functions to make sur…
paulstapor 0382baf
rename root symbols to HeavisideFunction_ to have things more indicative
paulstapor 7a121a5
tell AMICI about root, stau, and deltasx functions
paulstapor 5b9fc4e
heavisides without sensitivities should be working
paulstapor d1cbf26
need to change generation of stau to generration via inverse function…
paulstapor 3bca674
compute stau via inverse function theorem
paulstapor d736d36
added functionality for deltasx, but segfaulting
paulstapor fbf0775
bugfixing
paulstapor a7fc833
remove debug output
paulstapor 224e10e
get indentations right
paulstapor e7583fb
Merge branch 'develop' into piecewise_to_heaviside
FFroehlich dbd245a
Update python/amici/ode_export.py
paulstapor f25f2c9
Update python/amici/ode_export.py
paulstapor 5272337
Update python/amici/ode_export.py
paulstapor 1ba9942
Update python/amici/ode_export.py
paulstapor ca8879f
Update python/amici/ode_export.py
paulstapor 5d1a3cc
Update python/amici/sbml_import.py
paulstapor 8405b98
add a test for trajectories
dilpath 762a8fd
fix sroot and test
paulstapor 26f8f68
cosmetic
dilpath ed5b6c7
add analytical expressions for sensitivities
paulstapor f30dae3
add test for a complex condition
dilpath 49c2e43
merge conflict for whatever reason
paulstapor 32a5ec7
Merge branch 'piecewise_to_heaviside' of https://github.com/AMICI-dev…
dilpath 4be7c95
add test for many conditions
dilpath f1e53d1
fix test
paulstapor 2071b76
resolve conflict
paulstapor f71c786
improve documentation
paulstapor 2e0cdc8
rename tests and refactor test for iterated piecewise, to check SBML …
paulstapor e8e9738
cleanup for code review
paulstapor 2ef5fe9
further cleanup
paulstapor 978307a
quarter way done with parsing heavisides into piecewise
paulstapor 3bd894b
fix logic parsing
FFroehlich da370a4
monkeypatch sympy printer
FFroehlich 3cfdc14
enable more tests
FFroehlich 23c162e
Merge branch 'develop' into piecewise_to_heaviside
FFroehlich c8876ce
Merge branch 'develop' into piecewise_to_heaviside
FFroehlich ecdbbe3
implement denesting of piecewise
FFroehlich 25c5ef3
Merge branch 'piecewise_to_heaviside' of https://github.com/AMICI-dev…
FFroehlich bdebbc9
fix SBML nonsense
FFroehlich 0197e1e
fix boolean triggers
FFroehlich c811aa1
simplify logic checks
FFroehlich 0333e64
fix code smells
FFroehlich c6c0f7c
add events to variable prototypes
FFroehlich 1c6456f
cleanup
FFroehlich ff2a4bb
report details for skipped tests durin GHA run
FFroehlich a2e4967
better skip printing
FFroehlich d40f8ba
resubstitution of non-optimized RHS into stau
paulstapor b05cc7d
add sensitivity tests
paulstapor 209f992
refactor tests
dilpath 983823e
remove skipping display code
FFroehlich a1c7f6b
Merge branch 'piecewise_to_heaviside' of https://github.com/AMICI-dev…
FFroehlich 748b1eb
update test stats
FFroehlich c48b8a4
Update python/amici/ode_export.py
FFroehlich 5d897fe
Apply suggestions from code review
FFroehlich eb64393
document and simplify _collect_heaviside_roots
FFroehlich 46805ab
Merge branch 'piecewise_to_heaviside' of https://github.com/AMICI-dev…
FFroehlich 61a36b6
address review comments
FFroehlich 3f81ad1
reduce complexity
FFroehlich 33eb0ec
misplaced docstrings
dilpath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,3 +26,4 @@ class SymbolId(str, enum.Enum): | |
| EXPRESSION = 'expression' | ||
| SIGMAY = 'sigmay' | ||
| LLHY = 'llhy' | ||
| EVENT = 'event' | ||
Oops, something went wrong.
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.
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.
🙀
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.
Not sure what happened, looking at the tests that are skipped I couldn't really identify those 45 that are not longer passing.
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.
Ah, this is unrelated to this PR. (Here it increases from 804 to 805). This is where it happened: https://github.com/AMICI-dev/AMICI/actions/runs/331448378
Uh oh!
There was an error while loading. Please reload this page.
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.
Used to work but skipped now (Should be all those
AMICI does not support SBML models containing variables with SId):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.
I suspect thats due to the skippings with msgs like
Those are a little over 50 cases, so lets have a more detailed look in a different PR. Also looks like there are still a handful of low hanging fruits like ceil/min/max applied to numerical values, which we should be able to pass.
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.
Yes, separate PR.