Skip to content
Snippets Groups Projects
Commit 217981d6 authored by Jan Hoenig's avatar Jan Hoenig
Browse files

Added a transformation, which should get rid of sympy expressions.

Although expressions have args and function as a tree, args cannot be
modified. So tree-transformations are not possible.
Sympy has subs function, however it replaces all matched in any
subexpression, of the expression (i.e. not only in args but in args args
and so on).
parent 9a21e0c7
Branches
Tags
No related merge requests found
......@@ -302,7 +302,7 @@ class SympyAssignment(Node):
def lhs(self, newValue):
self._lhsSymbol = newValue
self._isDeclaration = True
if isinstance(self._lhsSymbol, Field.Access) or isinstance(self._lhsSymbol, Indexed):
if isinstance(self._lhsSymbol, Field.Access) or isinstance(self._lhsSymbol, sp.Indexed):
self._isDeclaration = False
@property
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment