Skip to content
Snippets Groups Projects
Commit c749fcaf authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] Filter returns a generator object in Python3

parent 56940c60
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,7 @@ class UFL2LoopyVisitor(ModifiedTerminalTracker):
def _minmax_impl(self, python_func, c_func, children):
# Build the maximum of those that are constant
constants = filter(lambda i: isinstance(i, (float, int)), children)
constants = list(filter(lambda i: isinstance(i, (float, int)), children))
children = set(filter(lambda i: not isinstance(i, (float, int)), children))
if constants:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment