Skip to content

Commit

Permalink
mappers: fix int_g changed flag
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Nov 19, 2024
1 parent f8b0d04 commit 54e4015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytential/symbolic/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def rec_int_g_arguments(mapper, expr):
name: mapper.rec(arg) for name, arg in expr.kernel_arguments.items()
}

changed = (
changed = not (
all(d is orig for d, orig in zip(densities, expr.densities, strict=True))
and all(
arg is orig for arg, orig in zip(
Expand Down
2 changes: 1 addition & 1 deletion test/test_symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def test_mapper_int_g_term_collector(op_name, k=0):
raise ValueError(f"unknown operator name: {op_name}")

from pytential.symbolic.mappers import flatten
assert expr_only_intgs == flatten(expected_expr)
assert flatten(expr_only_intgs) == flatten(expected_expr)

# }}}

Expand Down

0 comments on commit 54e4015

Please sign in to comment.