diff --git a/package/MDAnalysis/analysis/density.py b/package/MDAnalysis/analysis/density.py index 47876147eb2..18906c1b110 100644 --- a/package/MDAnalysis/analysis/density.py +++ b/package/MDAnalysis/analysis/density.py @@ -1194,8 +1194,8 @@ def notwithin_coordinates_factory(universe, sel1, sel2, cutoff, .. deprecated:: 1.0.0 - :func:`notwithin_coordinates_factory` is no longer supported and will be - removed in 2.0.0. + :func:`notwithin_coordinates_factory` is no longer supported and will be + removed in 2.0.0. """ # Benchmark of FABP system (solvent 3400 OH2, protein 2100 atoms) on G4 powerbook, 500 frames # cpu/s relative speedup use_kdtree @@ -1269,8 +1269,8 @@ def Bfactor2RMSF(B): .. deprecated:: 1.0.0 - :func:`Bfactor2RMSF` is no longer supported and will be removed in 2.0.0. - as part of the removal of the :func:`density_from_PDB` function. + :func:`Bfactor2RMSF` is no longer supported and will be removed in 2.0.0. + as part of the removal of the :func:`density_from_PDB` function. """ return np.sqrt(3. * B / 8.) / np.pi diff --git a/testsuite/MDAnalysisTests/analysis/test_density.py b/testsuite/MDAnalysisTests/analysis/test_density.py index f4d1381cffa..5b4b191c71e 100644 --- a/testsuite/MDAnalysisTests/analysis/test_density.py +++ b/testsuite/MDAnalysisTests/analysis/test_density.py @@ -37,7 +37,7 @@ from MDAnalysis.analysis import density from MDAnalysisTests.datafiles import TPR, XTC, GRO, PDB_full -from unittest.mock import Mock, patch +from mock import Mock, patch from MDAnalysisTests.util import block_import