Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building blocks should error if a passed parameter does not match any parameters. #482

Open
dappelha opened this issue Dec 2, 2023 · 0 comments

Comments

@dappelha
Copy link

dappelha commented Dec 2, 2023

I misspelled an argument to a building block, and the building block basically didn't care that I tried to pass it nonsense.

example, misspell toolchain= and you silently do not use the toolchain you thought you were using :

mpi = openmpi(toolchainggg=compiler.toolchain)

I'm not a python pro--shouldn't there be a way if you pass arguments to a class and they don't match any argument keywords that there is an error? It would make sense to error if users are passing parameter names that are not found in the class.

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

No branches or pull requests

1 participant