Skip to content

Commit

Permalink
fixup! Handle relational operators in SBML import (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Mar 4, 2025
1 parent 591173d commit 4764b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/sdist/amici/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +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),
"lt": sp.StrictLessThan,
"gt": sp.StrictGreaterThan,
"geq": sp.GreaterThan,
"leq": sp.LessThan,
}

if sym.__class__.__name__ in fun_mappings:
Expand Down

0 comments on commit 4764b67

Please sign in to comment.