Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ extend-ignore = [
"module-import-not-at-top-of-file",
"multiple-spaces-before-operator",
"non-empty-init-module",
"pytest-parameter-with-default-argument",
"try-consider-else",
"type-check-without-type-error",
]
Expand Down
3 changes: 1 addition & 2 deletions sumpy/expansion/diff_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,7 @@ def as_scalar_pde(
"""
indices: set[int] = set()
for eq in pde.eqs:
for deriv_ident in eq:
indices.add(deriv_ident.vec_idx)
indices.update(deriv_ident.vec_idx for deriv_ident in eq)

# this is already a scalar pde
if len(indices) == 1 and next(iter(indices)) == comp_idx:
Expand Down
Loading