Commit c60568b2 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed error on older Pythons

parent 78d42678
...@@ -5537,7 +5537,7 @@ class HippoNonbondedGenerator(object): ...@@ -5537,7 +5537,7 @@ class HippoNonbondedGenerator(object):
zAtom = self._findAxisAtom('zAtomType', extra, bonded12[atom.index], None, data, []) zAtom = self._findAxisAtom('zAtomType', extra, bonded12[atom.index], None, data, [])
xAtom = self._findAxisAtom('xAtomType', extra, bonded12[atom.index], bonded13[atom.index], data, [zAtom]) xAtom = self._findAxisAtom('xAtomType', extra, bonded12[atom.index], bonded13[atom.index], data, [zAtom])
yAtom = self._findAxisAtom('yAtomType', extra, bonded12[atom.index], bonded13[atom.index], data, [zAtom, xAtom]) yAtom = self._findAxisAtom('yAtomType', extra, bonded12[atom.index], bonded13[atom.index], data, [zAtom, xAtom])
force.addParticle(params[0], dipole, quadrupole, *params[1:], axisType, zAtom, xAtom, yAtom) force.addParticle(params[0], dipole, quadrupole, *params[1:], axisType=axisType, multipoleAtomZ=zAtom, multipoleAtomX=xAtom, multipoleAtomY=yAtom)
force.setNonbondedMethod(methodMap[nonbondedMethod]) force.setNonbondedMethod(methodMap[nonbondedMethod])
force.setExtrapolationCoefficients(self.extrapCoeff) force.setExtrapolationCoefficients(self.extrapCoeff)
force.setCutoffDistance(nonbondedCutoff) force.setCutoffDistance(nonbondedCutoff)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment