Skip to content

Commit

Permalink
Update atomicdistances.py
Browse files Browse the repository at this point in the history
added documentation and adjusted output
  • Loading branch information
talagayev authored Dec 5, 2024
1 parent 916a973 commit cbb3e66
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package/MDAnalysis/analysis/atomicdistances.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ class AtomicDistances(AnalysisBase):
.. versionadded:: 2.5.0
.. versionchanged:: 2.9.0
Implementation of `Results` into the class
for application in parallelization.
"""

def __init__(self, ag1, ag2, pbc=True, **kwargs):
Expand Down Expand Up @@ -176,3 +180,7 @@ def _single_frame(self):
self.results.distances[self._frame_index] = calc_bonds(self._ag1.positions,
self._ag2.positions,
box)

def _conclude(self):
# adjust self.results to self.results.distances
self.results = self.results.distances

0 comments on commit cbb3e66

Please sign in to comment.