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

Allow only one of input or default in MathBinary #841

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

praj-0
Copy link
Contributor

@praj-0 praj-0 commented Dec 28, 2022

@@ -89,6 +89,10 @@ def __init__(
#
# if operation is not None, we can proceed to instantiate the scala classes
if operation:
if (inputA and defaultA is not None) or \
Copy link
Contributor

@austinzh austinzh Dec 28, 2022

Choose a reason for hiding this comment

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

It's better if we check the final product of params.
Because user can set params in __init__, setParams, and set it one by one.
Most user actually prefer set it one by one like.

binaryMathBinary().setOpertion(BinaryOperation.Multiply).setInputA("aa").setInputB("bb").setDefaultA(1).setDefaultB(2)

@praj-0 praj-0 force-pushed the u/praj/math_binary_input_validation branch from f51be17 to e993d3e Compare December 29, 2022 18:20
@praj-0 praj-0 requested a review from austinzh December 29, 2022 18:31
@austinzh austinzh merged commit 7fc9694 into combust:master Dec 30, 2022
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