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

QoL: Protect node init keywords #660

Merged
merged 2 commits into from
May 2, 2023
Merged

QoL: Protect node init keywords #660

merged 2 commits into from
May 2, 2023

Conversation

liamhuber
Copy link
Member

We allow users to initialize node input channels using kwargs, so don't let them define nodes whose input channel names conflict with existing kwargs. Also raises a warning when users pass a kwarg that just never gets used.

We allow users to initialize input values using kwargs, so don't let them use channel names that will conflict with these
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4866013389

  • 7 of 8 (87.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 13.406%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pyiron_contrib/workflow/node.py 7 8 87.5%
Totals Coverage Status
Change from base Build 4865686651: 0.05%
Covered Lines: 1653
Relevant Lines: 12330

💛 - Coveralls

@liamhuber liamhuber merged commit b44cf1e into main May 2, 2023
@delete-merged-branch delete-merged-branch bot deleted the protect_node_attributes branch May 2, 2023 21:47
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.

2 participants