-
Notifications
You must be signed in to change notification settings - Fork 767
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
Fix hybrid tests #1363
Conversation
There was a problem hiding this 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.
gtsam/hybrid/HybridConditional.cpp
Outdated
@@ -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_) { |
There was a problem hiding this comment.
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_);
I hinted at not needing another CO2 wasting CI run :-) |
True, but I wanted to keep this self-contained... |
Fixes the tests after changes due to #1362.