Skip to content

Commit

Permalink
Merge pull request #2431 from ncfrey/atomicconv-tutorial
Browse files Browse the repository at this point in the history
[WIP] Tutorial 14 - Modeling Protein-Ligand Interactions with Atomic Convolutions
  • Loading branch information
ncfrey committed Mar 11, 2021
2 parents 90f983d + b730a79 commit 7ed0125
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 325 deletions.
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

0 comments on commit 7ed0125

Please sign in to comment.