Skip to content

Commit 062c598

Browse files
committed
update new results.distances attribute
1 parent aa79f61 commit 062c598

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package/MDAnalysis/analysis/atomicdistances.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@
112112
import numpy as np
113113

114114
from MDAnalysis.lib.distances import calc_bonds
115-
from MDAnalysis.analysis.results import (
116-
Results,
117-
)
115+
from MDAnalysis.analysis.results import Results
118116

119117
import logging
120118
from .base import AnalysisBase
@@ -185,6 +183,6 @@ def _prepare(self):
185183
def _single_frame(self):
186184
# if PBCs considered, get box size
187185
box = self._ag1.dimensions if self._pbc else None
188-
self.results[self._frame_index] = calc_bonds(
186+
self.results.distances[self._frame_index] = calc_bonds(
189187
self._ag1.positions, self._ag2.positions, box
190188
)

0 commit comments

Comments
 (0)