diff --git a/src/pystencils_autodiff/framework_integration/astnodes.py b/src/pystencils_autodiff/framework_integration/astnodes.py index e7fc9139c1c9e8986928607ce23fe24210f22b0a..fbfed8290080cce9bcb7302fa49343bd68e25034 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__