Skip to content

Add petab-compatible sympy codeprinter #362

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

Open
dweindl opened this issue Mar 20, 2025 · 0 comments · Fixed by #364
Open

Add petab-compatible sympy codeprinter #362

dweindl opened this issue Mar 20, 2025 · 0 comments · Fixed by #364
Assignees

Comments

@dweindl
Copy link
Member

dweindl commented Mar 20, 2025

We need some codeprinter to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid str(sympy.sympify("x^2")) -> 'x**2'.

@dweindl dweindl self-assigned this Mar 20, 2025
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 20, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 20, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 21, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 21, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 27, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 27, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 27, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit to dweindl/libpetab-python that referenced this issue Mar 27, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes PEtab-dev#362.
dweindl added a commit that referenced this issue Mar 27, 2025
Add a sympy Printer to stringify sympy expressions in a petab-compatible way.
For example, we need to avoid `str(sympy.sympify("x^2"))` -> `'x**2'`.

Closes #362.
@dweindl dweindl linked a pull request Mar 28, 2025 that will close this issue
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 a pull request may close this issue.

1 participant