Skip to content

Implement kernel rewriting #2123

Implement kernel rewriting

Implement kernel rewriting #2123

Triggered via pull request September 18, 2026 14:07
Status Cancelled
Total duration 26m 40s
Artifacts –

ci.yml

on: pull_request
Matrix: downstream_tests
Fit to window
Zoom out
Zoom in

Annotations

31 errors, 50 warnings, and 9 notices
basedpyright: sumpy/kernel_rewrite.py#L391
Argument of type "Matrix" cannot be assigned to parameter "iter1" of type "Iterable[_T1@__new__]" in function "__new__"   "MutableDenseMatrix" is incompatible with protocol "Iterable[_T1@__new__]"     "__iter__" is not present (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L391
Argument of type "zip[Unknown]" cannot be assigned to parameter "iterable" of type "Iterable[list[bytes]]" in function "__init__"   "zip[Unknown]" is incompatible with protocol "Iterable[list[bytes]]"     "__iter__" is an incompatible type       Type "() -> zip[Unknown]" is not assignable to type "() -> Iterator[_T_co@Iterable]"         Function return type "zip[Unknown]" is incompatible with type "Iterator[_T_co@Iterable]"           "zip[Unknown]" is incompatible with protocol "Iterator[_T_co@Iterable]" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L391
No overloads for "__init__" match the provided arguments (reportCallIssue)
basedpyright: sumpy/kernel_rewrite.py#L317
Argument of type "Rational | NaN | ComplexInfinity" cannot be assigned to parameter "value" of type "float" in function "__setitem__"   Type "Rational | NaN | ComplexInfinity" is not assignable to type "float"     "ComplexInfinity" is not assignable to "float" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L313
Argument of type "One | NegativeOne | Zero | Integer" cannot be assigned to parameter "value" of type "float" in function "__setitem__"   Type "One | NegativeOne | Zero | Integer" is not assignable to type "float"     "Integer" is not assignable to "float" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L287
No parameter named "prec" (reportCallIssue)
basedpyright: sumpy/kernel_rewrite.py#L252
Argument of type "list[Expression]" cannot be assigned to parameter "coeffs" of type "Sequence[ArithmeticExpression]" in function "__init__" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L194
Argument of type "Unknown | SparseMatrix" cannot be assigned to parameter "expr" of type "Basic" in function "simplify"   Type "Unknown | SparseMatrix" is not assignable to type "Basic"     "MutableSparseMatrix" is not assignable to "Basic" (reportArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L194
No overloads for "simplify" match the provided arguments (reportCallIssue)
basedpyright: sumpy/kernel_rewrite.py#L50
Import "sumpy.expansions.diff_op" could not be resolved (reportMissingImports)
Conda Pytest Symengine
Process completed with exit code 1.
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L260
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[3] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl3D_00(mu, k) in terms of YukKnl3D(k)
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L260
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[2] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl2D_00(mu, k) in terms of YukKnl2D(k)
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L240
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[3] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L240
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine: test/sumpy/test/test_kernel_rewrite.py#L219
test_rewrite_using_base_kernel_fourier_laplace_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine with Loopy FFT
Process completed with exit code 1.
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L260
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[3] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl3D_00(mu, k) in terms of YukKnl3D(k)
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L260
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[2] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl2D_00(mu, k) in terms of YukKnl2D(k)
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L240
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[3] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L240
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest Symengine with Loopy FFT: test/sumpy/test/test_kernel_rewrite.py#L219
test_rewrite_using_base_kernel_fourier_laplace_biharmonic[2] NotImplementedError: SymEngineToPymbolicMapper does not know how to map type 'Pi'
Conda Pytest
Canceling since a higher priority waiting request for kernel-rewrite exists
Conda Pytest
The operation was canceled.
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L260
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[3] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl3D_00(mu, k) in terms of YukKnl3D(k)
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L260
test_rewrite_using_base_kernel_fourier_brinkman_yukawa[2] sumpy.kernel_rewrite.RewriteFailedError: cannot rewrite BrinkmanletKnl2D_00(mu, k) in terms of YukKnl2D(k)
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L243
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[3] TypeError: cannot determine truth value of Relational: 0.0397887357729738339422209408431*Abs((6.18223860751220121908803457579e-17*_spatial_constant_mu + 6.18223860751220121908803457579e-17*mu)*(d0**2 + d1**2 + 2.0*d2**2)/(_spatial_constant_mu*mu))/Abs((d0**2 + d1**2 + d2**2)**1.5) < 3.0e-16
Conda Pytest: test/sumpy/test/test_kernel_rewrite.py#L243
test_rewrite_using_base_kernel_fourier_stokeslet_biharmonic[2] TypeError: cannot determine truth value of Relational: 0.0397887357729738339422209408431*Abs((6.18223860751220121908803457579e-17*_spatial_constant_mu*(2.0*d0**2 + (d0**2 + d1**2)*(log(d0**2 + d1**2) + 1.0)) - 6.18223860751220121908803457579e-17*mu*(2.0*d1**2 - (d0**2 + d1**2)*log(d0**2 + d1**2)))/(_spatial_constant_mu*mu*(d0**2 + d1**2))) < 3.0e-16
Tests for downstream project pytential
Canceling since a higher priority waiting request for kernel-rewrite exists
Tests for downstream project pytential
The operation was canceled.
CI
Canceling since a higher priority waiting request for kernel-rewrite exists
basedpyright: sumpy/kernel_rewrite.py#L179
Type of "inv" is partially unknown   Type of "inv" is "(method: Unknown | None = None, iszerofunc: Unknown = _iszero, try_block_diag: bool = False) -> Unknown" (reportUnknownMemberType)
basedpyright: sumpy/kernel_rewrite.py#L155
Stub file not found for "sympy" (reportMissingTypeStubs)
basedpyright: sumpy/kernel_rewrite.py#L115
"atol" is not accessed (reportUnusedParameter)
basedpyright: sumpy/kernel_rewrite.py#L107
Argument type is partially unknown   Argument corresponds to parameter "iterable" in function "join"   Argument type is "list[Unknown]" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L105
Type of "append" is partially unknown   Type of "append" is "(object: Unknown, /) -> None" (reportUnknownMemberType)
basedpyright: sumpy/kernel_rewrite.py#L102
Argument type is unknown   Argument corresponds to parameter "stop" in function "__new__" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L101
Argument type is unknown   Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L99
Argument type is partially unknown   Argument corresponds to parameter "iter1" in function "__new__"   Argument type is "Sequence[Unknown]" (reportUnknownArgumentType)
basedpyright: sumpy/kernel_rewrite.py#L99
Type of "mis" is partially unknown   Type of "mis" is "Sequence[Unknown]" (reportUnknownMemberType)
basedpyright: sumpy/kernel_rewrite.py#L97
Type of "append" is partially unknown   Type of "append" is "(object: Unknown, /) -> None" (reportUnknownMemberType)
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/mesh/__init__.py#L1125
Unimplemented: Cannot check element orientation for a mesh with mesh.dim != mesh.ambient_dim
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/mesh/__init__.py#L1125
Unimplemented: Cannot check element orientation for a mesh with mesh.dim != mesh.ambient_dim
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
Broadcasting array context array types across <class 'meshmode.dof_array.DOFArray'> has been implicitly enabled. As of 2026, this will no longer work. Use arraycontext.Bcast* object wrappers for roughly equivalent functionality. See the discussion in https://github.com/inducer/arraycontext/pull/190. To opt out now (and avoid this warning), pass _bcast_actx_array_type=False.
Tests for downstream project pytential: pytential/test/.conda-root/envs/testing/lib/python3.14/site-packages/meshmode/dof_array.py#L79
'bcast_numpy_array=True' is deprecated and will be unsupported from 2025.
Typos
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Ruff
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Documentation
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Conda Examples
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
basedpyright
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Conda Pytest Symengine
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Conda Pytest Symengine with Loopy FFT
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Conda Pytest
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Tests for downstream project pytential
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"