Skip to content

Conversation

@lvrfrc87
Copy link
Collaborator

lvrfrc87 and others added 18 commits March 24, 2022 15:26
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
# For naming consistency
# For name consistency.
reference_data = params
evaluation_result = operator_evaluator(reference_data["params"], value_to_compare)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
evaluation_result = operator_evaluator(reference_data["params"], value_to_compare)
return operator_evaluator(reference_data["params"], value_to_compare)

Copy link
Collaborator

Choose a reason for hiding this comment

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

operator_evaluator in evaluators.py typing should be changed from -> Dict to -> Tuple[List, bool]

reference_data = params
evaluation_result = operator_evaluator(reference_data["params"], value_to_compare)
return evaluation_result, not evaluation_result
return evaluation_result[1], not evaluation_result[0]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return evaluation_result[1], not evaluation_result[0]

Not needed, bool should be second tuple item as in other checks.
Looks like we should change the order in Operator implementation.

@lvrfrc87 lvrfrc87 requested a review from pszulczewski April 21, 2022 08:14
Copy link
Collaborator

@pszulczewski pszulczewski left a comment

Choose a reason for hiding this comment

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

Perfect!

@lvrfrc87 lvrfrc87 merged commit 7a96e5b into develop Apr 21, 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.

Strip inner bool from operator check result

3 participants