Skip to content

Fix small issues in primitives.py - #331

Open
alexfikl wants to merge 7 commits into
inducer:mainfrom
alexfikl:fix-primitves-folds
Open

Fix small issues in primitives.py#331
alexfikl wants to merge 7 commits into
inducer:mainfrom
alexfikl:fix-primitves-folds

Conversation

@alexfikl

@alexfikl alexfikl commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Probably best viewed commit by commit. It just moves things around and updates some phrasing/typos.

The baseline changes are due to moving some things around + probably from the boxtree FMM typing PR. (updated ./.basedpyright/baseline.json with 5430 errors (went down by 82) 😁)

Comment on lines -2041 to +2070
extra_args = provided_arg_names - kernel_arg_names
if missing_args:
if extra_args := (provided_arg_names - kernel_arg_names):

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to fix this a long time ago. It's correct now, right?

@alexfikl alexfikl Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, this fails some tests currently. The issue is that e.g. NeumannOperator for Helmholtz takes in some kernel_arguments for the kernel, but the representation also uses a LaplaceKernel, which is going to complain because it got an extra k when it gets passed the same kernel_arguments.

I would be inclined to convert the raise into a warning? I don't know..

I've currently just removed the kernel_arguments from that call (in a4295c9), so it should work 🤷

@alexfikl
alexfikl force-pushed the fix-primitves-folds branch from 2d6abd2 to 977566d Compare August 7, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant