Closed davidlmobley closed 4 years ago
Would love a timely review and merge from someone, as I am using this for a class I'm teaching, and this issue had broken some functionality I was using.
(With the exception of one import, changes are isolated to around line 192, but Atom also seems to have stripped out a few trailing spaces in the process. Apologies for the slightly messy changelog.)
Relatively recently, OpenMM added bond order handling, but our
packmol
module had not been updated to handle this, causing failures -- specifically, thebonds
array passed intomdtraj.topology.from_dataframe
now has four entries per bond ((atom1, atom2, type1, order)
) but the logic here was still treating it as if it only contained atoms. This resulted intype1
andorder
getting set to numbers larger than or equal to the number of atoms in the system, causing downstream failures.This fixes the issue.