Skip to content

Commit

Permalink
Small style change
Browse files Browse the repository at this point in the history
  • Loading branch information
jdetle committed Jul 5, 2016
1 parent 97c3105 commit b3b2ce9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/MDAnalysis/analysis/diffusionmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ def run(self):
D_inv = np.diag(1 / self._kernel.sum(1))
self._diff = np.dot(D_inv, self._kernel)
eigenvals, eigenvectors = np.linalg.eig(self._diff)
eg_arg = np.argsort(eigenvals)
self.eigenvalues = eigenvals[eg_arg[::-1]]
self.eigenvectors = eigenvectors[eg_arg[::-1]]
sort_idx = np.argsort(eigenvals)[::-1]
self.eigenvalues = eigenvals[sort_idx]
self.eigenvectors = eigenvectors[sort_idx]
self._calculated = True

def transform(self, n_eigenvectors, time):
Expand Down

0 comments on commit b3b2ce9

Please sign in to comment.