Commit 3475b790 authored by tic20's avatar tic20
Browse files

Change prefix argument name to "resname_prefix"

parent d6e2a771
......@@ -183,7 +183,7 @@ class ForceField(object):
self._templateGenerators = []
self.loadFile(files)
def loadFile(self, files, prefix=''):
def loadFile(self, files, resname_prefix=''):
"""Load an XML file and add the definitions from it to this ForceField.
Parameters
......@@ -262,7 +262,7 @@ class ForceField(object):
for tree in trees:
if tree.getroot().find('Residues') is not None:
for residue in tree.getroot().find('Residues').findall('Residue'):
resName = prefix+residue.attrib['name']
resName = resname_prefix+residue.attrib['name']
template = ForceField._TemplateData(resName)
if 'override' in residue.attrib:
template.overrideLevel = int(residue.attrib['override'])
......
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