From cb0f638a895922934af5c8ce8c2804e926f4e3e7 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Wed, 23 Oct 2019 11:17:32 +0200 Subject: [PATCH] Add DestructuringBindingsForFieldClass.__repr__ --- src/pystencils_autodiff/framework_integration/astnodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pystencils_autodiff/framework_integration/astnodes.py b/src/pystencils_autodiff/framework_integration/astnodes.py index e7fc913..fbfed82 100644 --- a/src/pystencils_autodiff/framework_integration/astnodes.py +++ b/src/pystencils_autodiff/framework_integration/astnodes.py @@ -78,6 +78,9 @@ class DestructuringBindingsForFieldClass(Node): """Inplace! substitute, similar to sympy's but modifies the AST inplace.""" self.body.subs(subs_dict) + def __repr__(self): + return f'Destructuring of Tensors {self.symbols_defined}\n' + self.body.__repr__() + @property def func(self): return self.__class__ -- GitLab