Skip to content

Commit

Permalink
Handle relational operators in SBML import
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Mar 4, 2025
1 parent f742e48 commit 9673abd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/sdist/amici/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ def _parse_special_functions(sym: sp.Expr, toplevel: bool = True) -> sp.Expr:
"arccoth": sp.functions.acoth,
"arcsech": sp.functions.asech,
"arccsch": sp.functions.acsch,
"lt": lambda *args: sp.StrictLessThan(*args),
"gt": lambda *args: sp.StrictGreaterThan(*args),
"geq": lambda *args: sp.GreaterThan(*args),
"leq": lambda *args: sp.LessThan(*args),
}

if sym.__class__.__name__ in fun_mappings:
Expand Down

0 comments on commit 9673abd

Please sign in to comment.