Rename and document Analysis.particle_energy()#5226
Merged
jngrad merged 13 commits intoespressomd:pythonfrom Jan 9, 2026
Merged
Rename and document Analysis.particle_energy()#5226jngrad merged 13 commits intoespressomd:pythonfrom
Analysis.particle_energy()#5226jngrad merged 13 commits intoespressomd:pythonfrom
Conversation
added 8 commits
January 8, 2026 17:28
…ation Introduce Analysis.particle_non_bonded_energy() as a clearer name for the per-particle short-range non-bonded energy calculation. The existing Analysis.particle_energy() function is retained as a deprecated alias to maintain backward compatibility and now emits a DeprecationWarning. Changes included: - Added particle_non_bonded_energy() with clarified docstring - Deprecated particle_energy() and redirected it to the new function - Updated unit tests to check backward compatibility and warning emission - Updated Sphinx documentation to reflect the clarified function semantics The underlying energy computation in the core remains unchanged.
jngrad
reviewed
Jan 8, 2026
ESPResSo 5.0 will break backward compatibility with previous releases.
Analysis.particle_energy()
itischler
pushed a commit
to itischler/espresso
that referenced
this pull request
Jan 19, 2026
Fixes espressomd#5039 Description of changes: - API change: rename `Analysis.particle_energy()` to `Analysis.particle_non_bonded_energy()` to better reflect the calculated quantity (kinetic, bonded, electrostatic and magnetostatic contributions are not part of this energy) - bugfix: Thole corrections are no longer part of the energy calculated by `Analysis.particle_non_bonded_energy()` - improve documentation of the per-particle non-bonded energy analysis function and of the Thole correction Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5039
Description of changes:
Analysis.particle_energy()toAnalysis.particle_non_bonded_energy()to better reflect the calculated quantity (kinetic, bonded, electrostatic and magnetostatic contributions are not part of this energy)Analysis.particle_non_bonded_energy()