Skip to content

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