Skip to content

Commit

Permalink
[algebra] restore missing sympify_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
spj101 committed Nov 25, 2021
1 parent 23e7850 commit aae30a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pySecDec/algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def from_expression(expression, polysymbols):

polysymbols_pm = polysymbols + [1/symbol for symbol in polysymbols]

sympy_poly = sp.poly(expression, polysymbols_pm)
sympy_poly = sp.poly(sympify_expression(expression), polysymbols_pm)
expolist = np.array(sympy_poly.monoms())
expolist = np.subtract(*np.split(expolist, 2, axis=1))
coeffs = sympy_poly.coeffs()
Expand Down

0 comments on commit aae30a6

Please sign in to comment.