Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjii committed Dec 8, 2021
1 parent 5bf6359 commit 5d1f343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmarks/analysis/rms.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def setup(self, num_atoms, weights, center, superposition):
self.u.trajectory[-1]
self.B = self.u.atoms.positions.copy()[:num_atoms]
except:
self.A = self.u.atoms.coordinates().copy()[:num_atoms]
self.A = self.u.atoms.positions.copy()[:num_atoms]
self.u.trajectory[-1]
self.B = self.u.atoms.coordinates().copy()[:num_atoms]
self.B = self.u.atoms.positions.copy()[:num_atoms]

def time_rmsd(self, num_atoms, weights, center, superposition):
"""Benchmark rmsd function using a setup similar to
Expand Down
2 changes: 1 addition & 1 deletion package/MDAnalysis/analysis/encore/covariance.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def covariance_matrix(ensemble,
# Select the same atoms in reference structure
reference_atom_selection = reference.select_atoms(
ensemble.get_atom_selection_string())
reference_coordinates = reference_atom_selection.atoms.coordinates()
reference_coordinates = reference_atom_selection.atoms.positions

# Flatten reference coordinates
reference_coordinates = reference_coordinates.flatten()
Expand Down

0 comments on commit 5d1f343

Please sign in to comment.