Skip to content

feat: Add test for solid harmonic moment translation (#159) #276

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tutou2356
Copy link

Adds a unit test (test_multipole_translation) to verify that solid harmonic moments calculated by Grid.moments behave correctly under origin translation, as required by issue #159. The test compares numerical results against the analytical formula and passe.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/grid/tests/test_molgrid.py:78

  • [nitpick] Consider renaming the variable 'l_check' (used for recalculating 'l' in get_lm_from_horton_index) to a more descriptive name, such as 'corrected_l', to improve code clarity.
l_check = 0

@PaulWAyers PaulWAyers requested a review from marco-2023 April 7, 2025 20:31
@tutou2356
Copy link
Author

Hi! @PaulWAyers @marco-2023 @Ali-Tehrani I’ve addressed the feedback from Copilot AI by renaming l_check to corrected_l for better clarity. The updated code has been pushed, and all tests still pass. Please let me know if there’s anything else to address! Thanks!

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.

1 participant