PEtab-dev / libpetab-python

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

Fix SBML math parsing #283

Open dweindl opened 5 months ago

dweindl commented 5 months 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/.