Skip to content

Commit f815aea

Browse files
Fix failing doctest in rms.py
1 parent 9fb8b0a commit f815aea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • package/MDAnalysis/analysis

package/MDAnalysis/analysis/rms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def rmsd(a, b, weights=None, center=False, superposition=False):
235235
236236
Example
237237
-------
238+
>>> import numpy as np
238239
>>> import MDAnalysis as mda
239240
>>> from MDAnalysis.analysis.rms import rmsd
240241
>>> from MDAnalysis.tests.datafiles import PSF, DCD
@@ -243,8 +244,10 @@ def rmsd(a, b, weights=None, center=False, superposition=False):
243244
>>> A = bb.positions.copy() # coordinates of first frame
244245
>>> _ = u.trajectory[-1] # forward to last frame
245246
>>> B = bb.positions.copy() # coordinates of last frame
247+
>>> # A and B now contain the coordinates we want to compare
246248
>>> rmsd(A, B, center=True)
247249
6.838544558398293
250+
6.838544558398293
248251
249252
250253
.. versionchanged:: 0.8.1

0 commit comments

Comments
 (0)