PEtab-dev / libpetab-python

Python package for working with PEtab files
https://libpetab-python.readthedocs.io
MIT License
14 stars 5 forks source link

Fix SBML math parsing #283

Open dweindl opened 1 week ago

dweindl commented 1 week ago

petab.models.sbml_model.sympify_sbml currently uses sympy.sympify for evaluating SBML L3 formulas. Operator precedence is different between sympy and SBML L3 formulas. This can lead to hard-to-find issues. Use a proper parser, e.g. https://github.com/dweindl/sbmlmath/.