Skip to content

Commit

Permalink
rm force
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Hernandez committed Mar 23, 2017
1 parent 61275f7 commit 2584c6f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nma/nma.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from itertools import combinations_with_replacement

from scipy import linalg

import numpy as np

import mdtraj as md
Expand Down Expand Up @@ -116,9 +115,6 @@ def _animate(self, mode):

return md.Trajectory(xyz[:-1], self._top)

def _nb_force(self, x):
return 1E-6 / (x - self.nb_cutoff).clip(1E-3, np.inf) ** 2.

def _set_hessian(self, i, j, g):
i2j = self._xyz[0, i, :] - self._xyz[0, j, :]
dist2 = np.dot(i2j, i2j)
Expand Down Expand Up @@ -159,7 +155,7 @@ def fit(self, X):
self.hessian_ = np.zeros((3 * self._top.n_atoms,
3 * self._top.n_atoms))

# Get Distances and Calculate Forces
# Get Distances
self.distances_ = md.compute_distances(self._structure,
atom_pairs=self.non_bonded
).ravel()
Expand Down

0 comments on commit 2584c6f

Please sign in to comment.