Expected behavior
capped_distance should return something for each step of the trajectory
Actual behavior
when iterating over the trajectory, the kernel dies as the 8th frame is being processed - so initially I suspected a memory issue.
however, when running only the 8th frame, the same thing (see below) happens.
I have used other analysis functions on this trajectory including distance_array, so it seems specific to the recent implementation of capped_distance.
Code to reproduce the behavior
import MDAnalysis as mda
from MDAnalysis.lib import distances
u = mda.Universe(TOP, TRJ)
u.trajectory[7]
A=u.atoms.select_atoms("type os oh")
H=u.atoms.select_atoms("type HW")
#this works
distances.distance_array(H.positions, A.positions, box=u.dimensions)
#this doesn't
capped_distance(H.positions, A.positions, max_cutoff=3.0, box=u.dimensions)
Currently version of MDAnalysis
- 0.19.0
- Python 3.6.6 :: Anaconda custom (64-bit)
- Mac OS X Mojave
TOP
TRJ