Commit 4f66c0c6 authored by Rafal P. Wiewiora's avatar Rafal P. Wiewiora
Browse files

enable wildcard use for types

parent 2acba7ad
......@@ -320,11 +320,15 @@ class ForceField(object):
types.append(None) # Unknown atom class
else:
types.append(self._atomClasses[attrib[classAttrib]])
else:
if typeAttrib not in attrib or attrib[typeAttrib] not in self._atomTypes:
elif typeAttrib in attrib:
if attrib[typeAttrib] == '':
types.append(self._atomClasses['']):
elif attrib[typeAttrib] not in self._atomTypes:
types.append(None) # Unknown atom type
else:
types.append([attrib[typeAttrib]])
else:
types.append(None) # Unknown atom type
return types
def _parseTorsion(self, attrib):
......
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