"serialization/tests/TestSerializeRGForce.cpp" did not exist on "ede48b85dc905d36a0314b7fcaf2c95b6d78635e"
Commit d1414350 authored by Jason Swails's avatar Jason Swails
Browse files

Fix this problem reported by Travis-CI:

ERROR: Test that altering the mass of hydrogens works correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/SimTk/openmm/python/tests/TestCharmmFiles.py", line 91, in test_HydrogenMass
    topology = self.psf_v.topology
  File "/usr/local/lib/python2.7/dist-packages/simtk/openmm/app/charmmpsffile.py", line 777, in topology
    masselem = Element.getByMass(mass)
NameError: global name 'Element' is not defined
parent f4e4c4b1
...@@ -774,7 +774,7 @@ class CharmmPsfFile(object): ...@@ -774,7 +774,7 @@ class CharmmPsfFile(object):
elem = element.Element.getByAtomicNumber(atomic_num) elem = element.Element.getByAtomicNumber(atomic_num)
else: else:
# Figure it out from the mass # Figure it out from the mass
masselem = Element.getByMass(mass) masselem = element.Element.getByMass(mass)
if masselem is None: if masselem is None:
atomic_number = 0 # Extra point or something atomic_number = 0 # Extra point or something
else: else:
......
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