Skip to content

Commit 4764b67

Browse files
committed
fixup! Handle relational operators in SBML import (#2652)
1 parent 591173d commit 4764b67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/sdist/amici/import_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,10 @@ def _parse_special_functions(sym: sp.Expr, toplevel: bool = True) -> sp.Expr:
387387
"arccoth": sp.functions.acoth,
388388
"arcsech": sp.functions.asech,
389389
"arccsch": sp.functions.acsch,
390-
"lt": lambda *args: sp.StrictLessThan(*args),
391-
"gt": lambda *args: sp.StrictGreaterThan(*args),
392-
"geq": lambda *args: sp.GreaterThan(*args),
393-
"leq": lambda *args: sp.LessThan(*args),
390+
"lt": sp.StrictLessThan,
391+
"gt": sp.StrictGreaterThan,
392+
"geq": sp.GreaterThan,
393+
"leq": sp.LessThan,
394394
}
395395

396396
if sym.__class__.__name__ in fun_mappings:

0 commit comments

Comments
 (0)