From 2ae24f48f0a75528a6b9c17f60fba972c0fab440 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Tue, 3 Sep 2019 08:52:12 +0200 Subject: [PATCH] Lint --- src/pystencils_autodiff/framework_integration/astnodes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pystencils_autodiff/framework_integration/astnodes.py b/src/pystencils_autodiff/framework_integration/astnodes.py index 05ebb09..99064e6 100644 --- a/src/pystencils_autodiff/framework_integration/astnodes.py +++ b/src/pystencils_autodiff/framework_integration/astnodes.py @@ -253,7 +253,10 @@ class JinjaCppFile(Node): assert self.TEMPLATE, f"Template of {self.__class__} must be set" render_dict = {k: (self._print(v) if not isinstance(v, (pystencils.Field, pystencils.TypedSymbol)) else v) if not isinstance(v, Iterable) or isinstance(v, str) - else [(self._print(a) if not isinstance(a, (pystencils.Field, pystencils.TypedSymbol)) else a) for a in v] + else [(self._print(a) + if not isinstance(a, (pystencils.Field, pystencils.TypedSymbol)) + else a) + for a in v] for k, v in self.ast_dict.items()} render_dict.update({"headers": pystencils.backends.cbackend.get_headers(self)}) render_dict.update({"globals": pystencils.backends.cbackend.get_global_declarations(self)}) -- GitLab