Skip to content

Conversation

@skfegan
Copy link
Member

@skfegan skfegan commented Jan 14, 2026

Summary

Switching to using principal axes for translation and rotation at all levels.

Changes

  • Removing get_axes function
  • Adding trans_axes and rot_axes from principal axes (using MDAnalysis function)
  • Weighting torques by eigenvalues of the moment of inertia tensor

Impact

  • Simplifies axes selection
  • Weighting torques consistent with axes choice

@harryswift01 harryswift01 changed the title 225 principal axes Adopt Principal Axes for Translational and Rotational Coordinates at All Levels Jan 15, 2026
Copy link
Contributor

@harryswift01 harryswift01 left a comment

Choose a reason for hiding this comment

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

Thanks for making these changes @skfegan, they significantly reduce the complexity of the current axes calculations and make better use of existing MDAnalysis functionality. This should also lower the risk of bugs by relying on well-tested standard library routines. I’ve made a few minor, non-functional edits to the get_weighted_forces and get_weighted_torques functions, mainly consolidating inline comments into the docstrings to improve readability. Other than that, everything looks good to me, and I’m happy to approve this for merging.

Copy link
Member

@jimboid jimboid left a comment

Choose a reason for hiding this comment

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

Harry has done a thorough review. All looks great.

@skfegan skfegan merged commit 4b5805c into main Jan 15, 2026
15 checks passed
@skfegan skfegan deleted the 225-principal-axes branch January 15, 2026 13:26
harryswift01 added a commit that referenced this pull request Jan 16, 2026
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.

4 participants