Skip to content
Snippets Groups Projects
Commit 1ad3dc71 authored by Rafal Skolasinski's avatar Rafal Skolasinski
Browse files

do not call "sympy.expand" on the output of "continuum.sympify"

Calling "expand" at this point is not required and differs from
sympy behaviour without a good argument for it. Closes #146.
parent d45acdb7
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ def sympify(expr, locals=None):
converter[list] = stored_value
else:
del converter[list]
return sympy.expand(hamiltonian)
return hamiltonian
def make_commutative(expr, *symbols):
......
......@@ -370,7 +370,7 @@ def _discretize_summand(summand, coords):
else:
result = factor * result
return sympy.expand(result)
return result
def _discretize_expression(expression, coords):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment