Skip to content

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
Contributor

@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
Contributor

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