Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #3467: Replaced .coordinates() with .positions #3479

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failed codecov check is indicating that the this line isn't covered by a test. This explains why tests didn't identify that atoms.coordinates() no longer existed.

If possible could you add a test that checks this code path?


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