Skip to content

Commit baba46f

Browse files
committed
mappers: fix int_g changed flag
1 parent 51898af commit baba46f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pytential/symbolic/mappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def rec_int_g_arguments(mapper, expr):
6161
name: mapper.rec(arg) for name, arg in expr.kernel_arguments.items()
6262
}
6363

64-
changed = (
64+
changed = not (
6565
all(d is orig for d, orig in zip(densities, expr.densities, strict=True))
6666
and all(
6767
arg is orig for arg, orig in zip(

test/test_symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def test_mapper_int_g_term_collector(op_name, k=0):
500500
raise ValueError(f"unknown operator name: {op_name}")
501501

502502
from pytential.symbolic.mappers import flatten
503-
assert expr_only_intgs == flatten(expected_expr)
503+
assert flatten(expr_only_intgs) == flatten(expected_expr)
504504

505505
# }}}
506506

0 commit comments

Comments
 (0)