Skip to content

extend support for sbml functions#1357

Merged
FFroehlich merged 13 commits intodevelopfrom
fixes_sbml
Dec 11, 2020
Merged

extend support for sbml functions#1357
FFroehlich merged 13 commits intodevelopfrom
fixes_sbml

Conversation

@FFroehlich
Copy link
Member

No description provided.

@FFroehlich FFroehlich requested a review from dweindl December 9, 2020 20:57
Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

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

👍

Don't forget to update test stats in README, once the testsuite ran through ;)

@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #1357 (0c51317) into develop (6cde876) will increase coverage by 0.02%.
The diff coverage is 77.27%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1357      +/-   ##
===========================================
+ Coverage    78.78%   78.81%   +0.02%     
===========================================
  Files           62       62              
  Lines         9915    10255     +340     
===========================================
+ Hits          7812     8082     +270     
- Misses        2103     2173      +70     
Flag Coverage Δ
cpp 75.35% <ø> (+0.01%) ⬆️
petab 69.51% <52.00%> (-0.26%) ⬇️
python 68.00% <52.00%> (-0.26%) ⬇️

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

Impacted Files Coverage Δ
python/amici/sbml_import.py 90.26% <77.27%> (-6.61%) ⬇️
src/sundials_matrix_wrapper.cpp 83.79% <0.00%> (+0.21%) ⬆️

@paulstapor
Copy link
Contributor

Really curious about the result of the test suite...

@FFroehlich
Copy link
Member Author

Really curious about the result of the test suite...

Should be 861/1780 now, at least thats what I got locally.

@sonarqubecloud
Copy link

@FFroehlich FFroehlich merged commit a7c0d4f into develop Dec 11, 2020
@FFroehlich FFroehlich deleted the fixes_sbml branch December 11, 2020 05:20
@FFroehlich FFroehlich mentioned this pull request Dec 12, 2020
FFroehlich added a commit that referenced this pull request Dec 15, 2020
* Fix: Don't require code context for call stack (fixes #1347) (#1348)

* Fix Intel compiler warnings (#1349)

'type qualifier on return type is meaningless'

Closes #1346

* Avoid segfault in CVODES CVAdataStore (#1351)

Does not fix the root cause of occassional segfaults, but turns them into exceptions / integration failues.

* CI: Move windows tests from TravisCI to GitHub Actions (#1354)

Closes #1350

Removes obsolete .travis.yml

* Fix cxxcode import for SymPy 1.6 (#1356)

* Piecewise to heaviside (#1352)

* parse piecewise into heaviside functions

* Add Events as model quantity, parse Heavisides slightly differently

* bugfix

* rename symbols of root to h and switch order of functions to make sure h is known when dxdotdx_explicit is generated, to have the header file of h included

* rename root symbols to HeavisideFunction_ to have things more indicative

* tell AMICI about root, stau, and deltasx functions

* heavisides without sensitivities should be working

* need to change generation of stau to generration via inverse function theorem

* compute stau via inverse function theorem

* added functionality for deltasx, but segfaulting

* bugfixing

* remove debug output

* get indentations right

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/sbml_import.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* add a test for trajectories

* fix sroot and test

* cosmetic

* add analytical expressions for sensitivities

* add test for a complex condition

* add test for many conditions

* fix test

* improve documentation

* rename tests and refactor test for iterated piecewise, to check SBML piecewise logic a bit further

* cleanup for code review

* further cleanup

* quarter way done with parsing heavisides into piecewise

* fix logic parsing

* monkeypatch sympy printer

* enable more tests

* implement denesting of piecewise

* fix SBML nonsense

* fix boolean triggers

* simplify logic checks

* fix code smells

* add events to variable prototypes

* cleanup

* report details for skipped tests durin GHA run

* better skip printing

* resubstitution of non-optimized RHS into stau

* add sensitivity tests

* refactor tests

* remove skipping display code

* update test stats

* Update python/amici/ode_export.py

* Apply suggestions from code review

Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>

* document and simplify _collect_heaviside_roots

* address review comments

* reduce complexity

* misplaced docstrings

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>
Co-authored-by: dilpath <dilan.private+github@outlook.com>
Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>

* restore support for species references (#1358)

* restore support for species references

* fixup and improve error message

* extend support for sbml functions (#1357)

* add more function mappings

* fixup min/max

* fix rem

* add Mod to unsupported functions

* more trigonometric functions

* more functions, fix xref

* fix xref with init assignment

* extend unsupported functions

* fix plus with empty arguments, update statistics

* update test stats

* fix stats

* Refactor: introduce import_utils.py (#1361)

* Refactor: introduce import_utils.py

To collect format-independent functions for model import.

* add additional file to SBML Testsuite path check

* Include new module in doc

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* CI: Show all compiler warnings and treat as error (#1362)

* CI: Show all compiler errors and treat as error

Closes #1167

* Fix unused arguments

* Fix deprecated-copy

* Fix NVector (non-)const mess

* Fix CMake deprecation warning

* Fix doxygen

* Fix some typos

* Simplify / reduce number of const_casts

* Add support for different noise models for PySB import (#1360)

* Add support for different noise models for PySB import

.. as already the case for SBML import.

Closes #1176

* Respect noise model selection for PySB-PEtab import (#1339)

* doc, import

* Respect observable transformation for PySB-PEtab import (Fixes #1339)

* Set ODEModel._has_quadratic_nllh

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* version bump

* fix some code smells to trigger GHA builds again?

* update docker to 20.04

* pin breathe

Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>
Co-authored-by: Lorenzo Contento <lcontento@users.noreply.github.com>
Co-authored-by: Paul Stapor <paul.stapor@helmholtz-muenchen.de>
Co-authored-by: dilpath <dilan.private+github@outlook.com>
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.

3 participants