Skip to content

Commit

Permalink
finish tutorial 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ncfrey committed Mar 9, 2021
1 parent 698519d commit bf441f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 325 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def compute_neighbor_list(coords, neighbor_cutoff, max_num_neighbors,
periodic_box_size):
"""Computes a neighbor list from atom coordinates."""
N = coords.shape[0]
import mdtraj
try:
import mdtraj
except ModuleNotFoundError:
raise ImportError("This function requires mdtraj to be installed.")
traj = mdtraj.Trajectory(coords.reshape((1, N, 3)), None)
box_size = None
if periodic_box_size is not None:
Expand Down
Loading

0 comments on commit bf441f5

Please sign in to comment.