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

Fix hybrid tests #1363

Merged
merged 12 commits into from
Jan 3, 2023
Merged

Conversation

varunagrawal
Copy link
Collaborator

Fixes the tests after changes due to #1362.

@varunagrawal varunagrawal requested a review from dellaert January 3, 2023 08:53
@varunagrawal varunagrawal self-assigned this Jan 3, 2023
Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

Awesome. The one comment can be done in follow up PR. Merge at will.

@@ -117,6 +117,22 @@ bool HybridConditional::equals(const HybridFactor &other, double tol) const {
return other != nullptr && dc->equals(*other, tol);
}
return inner_->equals(*(e->inner_), tol);

if (inner_) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe

return inner_ ? (e->inner_ ? inner_->equals(*(e->inner_), tol) : false) : !(e->inner_);

@dellaert
Copy link
Member

dellaert commented Jan 3, 2023

I hinted at not needing another CO2 wasting CI run :-)

@varunagrawal
Copy link
Collaborator Author

I hinted at not needing another CO2 wasting CI run :-)

True, but I wanted to keep this self-contained...

@varunagrawal varunagrawal merged commit 385ae34 into hybrid/test_with_evaluate Jan 3, 2023
@varunagrawal varunagrawal deleted the hybrid/test_with_evaluate-2 branch January 3, 2023 20:24
@dellaert dellaert added this to the Hybrid Inference milestone Feb 7, 2023
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