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

Remove Potentials #1013

Merged
merged 4 commits into from
Jan 7, 2022
Merged

Remove Potentials #1013

merged 4 commits into from
Jan 7, 2022

Conversation

ProfFan
Copy link
Collaborator

@ProfFan ProfFan commented Jan 7, 2022

Removes the Potentials class and move functionalities to ADT.

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.

Nice one!!!

}
}

/* ************************************************************************* */
double DecisionTreeFactor::safe_div(const double &a, const double &b) {
// cout << boost::format("%g / %g = %g\n") % a % b % ((a == 0) ? 0 : (a / b));
Copy link
Member

Choose a reason for hiding this comment

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

Kill this line?

* @deprecated
* @brief Deprecated class for storing an ADT with some convenience methods
* */
typedef GTSAM_DEPRECATED AlgebraicDecisionTree<Key> Potentials;
Copy link
Member

Choose a reason for hiding this comment

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

Just kill - nobody used this ever I think

typedef Clique Node; ///< Synonym for Clique (TODO: remove)
typedef sharedClique sharedNode; ///< Synonym for sharedClique (TODO: remove)

typedef GTSAM_DEPRECATED Clique Node; ///< Synonym for Clique (TODO: remove)
Copy link
Member

Choose a reason for hiding this comment

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

All deprecated should be at end of class in ifdef block.

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

Awesome! Merge whenever CI passes ^_^

#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
public:
typedef GTSAM_DEPRECATED Clique Node; ///< Synonym for Clique (TODO: remove)
typedef GTSAM_DEPRECATED sharedClique sharedNode; ///< Synonym for sharedClique (TODO: remove)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change is the breaker. We should undo it since it is a much bigger effort which is also tangential to this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, it seems unrelated and should be it’s own PR. If it is in fact appropriate, because some of the parallel processing stuff might need this.

@ProfFan ProfFan merged commit 4dafcc5 into develop Jan 7, 2022
@ProfFan ProfFan deleted the feature/remove_potentials branch January 7, 2022 19:09
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.

3 participants