From 40d720a9c817c1b512c8b92e1182b0590d50b5a4 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Tue, 1 Oct 2019 11:48:07 +0200 Subject: [PATCH] No automatic simplify in SympyAssignment astnode --- pystencils/astnodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystencils/astnodes.py b/pystencils/astnodes.py index eb5910f9c..05106e365 100644 --- a/pystencils/astnodes.py +++ b/pystencils/astnodes.py @@ -503,7 +503,7 @@ class SympyAssignment(Node): def __init__(self, lhs_symbol, rhs_expr, is_const=True): super(SympyAssignment, self).__init__(parent=None) self._lhs_symbol = lhs_symbol - self.rhs = sp.simplify(rhs_expr) + self.rhs = sp.sympify(rhs_expr) self._is_const = is_const self._is_declaration = self.__is_declaration() -- GitLab